projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.5.1p3
[debian/amanda]
/
common-src
/
strftime.c
diff --git
a/common-src/strftime.c
b/common-src/strftime.c
index e3b0ea7e87e91a09ed468c2f358f465f27d9e0b0..c18098597569f5a65ef3500221fbbf18d38414bc 100644
(file)
--- 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 */
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 <tzfile.h>
-#include <string.h>
static char *afmt[] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
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;
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;
*p-- = n % 10 + '0';
while (p > buf && digits-- > 0)
*p-- = pad;