X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fposixtm.c;h=2c392e40124dda4fb2de2fc740b1babe45494b85;hb=c57b0256714cb35dcef48b8bc41814ce326d8127;hp=2e3f791f7e3b97543317b34ce610fb4881faa1de;hpb=bf42be861436504ccd5dd2780b78dab25aee7043;p=gnulib.git diff --git a/lib/posixtm.c b/lib/posixtm.c index 2e3f791f7..2c392e401 100644 --- a/lib/posixtm.c +++ b/lib/posixtm.c @@ -1,5 +1,5 @@ /* Parse dates for touch and date. - Copyright (C) 1989, 1990, 1991, 1998 Free Software Foundation Inc. + 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, '.')))