]> git.pld-linux.org Git - packages/iptables.git/blob - iptables-libipt_time.patch
- allow build with -O0
[packages/iptables.git] / iptables-libipt_time.patch
1 --- ./extensions/libipt_time.c.org      Wed May  5 12:10:33 2004
2 +++ ./extensions/libipt_time.c  Tue May 25 11:46:53 2004
3 @@ -452,10 +452,11 @@
4  static void
5  print_date(time_t date, char *command)
6  {
7 +       struct tm *t;
8 +
9         /* If it's default value, don't print..*/
10         if (((date == 0) || (date == LONG_MAX)) && (command != NULL))
11                 return;
12 -       struct tm *t;
13         t = localtime(&date);
14         if (command != NULL)
15                 printf("%s %d:%d:%d:%d:%d:%d ", command, (t->tm_year + 1900), (t->tm_mon + 1),
This page took 0.041394 seconds and 3 git commands to generate.