Imported Upstream version 2.5.1
[debian/amanda] / common-src / strftime.c
index e3b0ea7e87e91a09ed468c2f358f465f27d9e0b0..c18098597569f5a65ef3500221fbbf18d38414bc 100644 (file)
 static char sccsid[] = "@(#)strftime.c 5.8 (Berkeley) 6/1/90";
 #endif /* LIBC_SCCS and not lint */
 
-#include <sys/types.h>
-#include <sys/time.h>
+#include "amanda.h"
 #include <tzfile.h>
-#include <string.h>
 
 static char *afmt[] = {
        "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
@@ -235,7 +233,7 @@ _conv(n, digits, pad)
        static char buf[10];
        register char *p;
 
-       for (p = buf + sizeof(buf) - 2; n > 0 && p > buf; n /= 10, --digits)
+       for (p = buf + SIZEOF(buf) - 2; n > 0 && p > buf; n /= 10, --digits)
                *p-- = n % 10 + '0';
        while (p > buf && digits-- > 0)
                *p-- = pad;