]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't use %D in strftime because egcs complains about it.
authorTed Lemon <source@isc.org>
Sat, 13 Feb 1999 19:19:03 +0000 (19:19 +0000)
committerTed Lemon <source@isc.org>
Sat, 13 Feb 1999 19:19:03 +0000 (19:19 +0000)
common/print.c

index 4a2b464862d65e62a9efc3bebcd8bbc32d7cbec4..d05af8dd464d5785c5047f79c7cb4301b5023c71 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: print.c,v 1.16.2.2 1998/11/24 22:39:35 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: print.c,v 1.16.2.3 1999/02/13 19:19:03 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -80,15 +80,15 @@ void print_lease (lease)
               piaddr (lease -> ip_addr));
        
        t = gmtime (&lease -> starts);
-       strftime (tbuf, sizeof tbuf, "%D %H:%M:%S", t);
+       strftime (tbuf, sizeof tbuf, "%Y/%m/%d %H:%M:%S", t);
        debug ("        start %s", tbuf);
        
        t = gmtime (&lease -> ends);
-       strftime (tbuf, sizeof tbuf, "%D %H:%M:%S", t);
+       strftime (tbuf, sizeof tbuf, "%Y/%m/%d %H:%M:%S", t);
        debug ("        end %s", tbuf);
        
        t = gmtime (&lease -> timestamp);
-       strftime (tbuf, sizeof tbuf, "%D %H:%M:%S", t);
+       strftime (tbuf, sizeof tbuf, "%Y/%m/%d %H:%M:%S", t);
        debug ("        stamp %s", tbuf);
        
        debug ("        hardware addr = %s",