projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
posixtm.c
diff --git
a/lib/posixtm.c
b/lib/posixtm.c
index
4af8431
..
2c392e4
100644
(file)
--- a/
lib/posixtm.c
+++ b/
lib/posixtm.c
@@
-1,5
+1,5
@@
-/* Parse dates.
- Copyright (C) 1989, 1990, 1991, 1998 Free Software Foundation Inc.
+/* Parse dates
for touch and date
.
+ Copyright (C) 1989, 1990, 1991, 1998
, 2000
Free Software Foundation Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-23,6
+23,9
@@
#endif
#include <stdio.h>
#endif
#include <stdio.h>
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
#include <sys/types.h>
#if HAVE_STRING_H
# include <string.h>
#include <sys/types.h>
#if HAVE_STRING_H
# include <string.h>
@@
-117,7
+120,7
@@
posix_time_parse (const char *s, unsigned int syntax_bits)
const char *dot = NULL;
int pair[6];
int *p;
const char *dot = NULL;
int pair[6];
int *p;
- int i;
+
unsigned
int i;
size_t s_len = strlen (s);
size_t len = (((syntax_bits & PDS_SECONDS) && (dot = strchr (s, '.')))
size_t s_len = strlen (s);
size_t len = (((syntax_bits & PDS_SECONDS) && (dot = strchr (s, '.')))