X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fposixtm.c;h=2c392e40124dda4fb2de2fc740b1babe45494b85;hb=76368237de9cfd7ba86350b1163305941483ea2e;hp=4af84318171556514101b3f3a83a438c57011a82;hpb=9a2e1a1ebd6b186420a1dd2bed571ddcf63646e7;p=gnulib.git diff --git a/lib/posixtm.c b/lib/posixtm.c index 4af843181..2c392e401 100644 --- 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 @@ -23,6 +23,9 @@ #endif #include +#if HAVE_STDLIB_H +# include +#endif #include #if HAVE_STRING_H # include @@ -117,7 +120,7 @@ posix_time_parse (const char *s, unsigned int syntax_bits) 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, '.')))