X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fstrftime.c;h=c18098597569f5a65ef3500221fbbf18d38414bc;hb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;hp=e3b0ea7e87e91a09ed468c2f358f465f27d9e0b0;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/common-src/strftime.c b/common-src/strftime.c index e3b0ea7..c180985 100644 --- a/common-src/strftime.c +++ b/common-src/strftime.c @@ -21,10 +21,8 @@ static char sccsid[] = "@(#)strftime.c 5.8 (Berkeley) 6/1/90"; #endif /* LIBC_SCCS and not lint */ -#include -#include +#include "amanda.h" #include -#include 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;