X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fstrftime.c;fp=common-src%2Fstrftime.c;h=c18098597569f5a65ef3500221fbbf18d38414bc;hb=12179dea039515c06168c0037d048566a3f623de;hp=e3b0ea7e87e91a09ed468c2f358f465f27d9e0b0;hpb=94c03cae686e4196a345d72452fda2a5203768ce;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;