diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-10-15 18:22:39 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-10-15 18:22:39 +0000 |
commit | 6520c5e4677fd1f968d7d8800a93e4dd2d51af9a (patch) | |
tree | 8fd521ebd3bd2c742e7a0a8a8a7f329a5f75c625 /lib | |
parent | b0da7c7aeae0b19fe2ad22b05a860d3a9aecf2cb (diff) | |
download | mailfromd-6520c5e4677fd1f968d7d8800a93e4dd2d51af9a.tar.gz mailfromd-6520c5e4677fd1f968d7d8800a93e4dd2d51af9a.tar.bz2 |
* pies/progman.c (env_setup): Port new implementation from Rush.
* gnulib.modules: Add c-ctype
* mtasim/mtasim.c, pies/pies.h, pmult/pmult.c, lib/parsetime.c,
mfd/lex.l, mfd/gram.y, mfd/mailfromd.h, mfd/spf.c,
mfd/bi_sprintf.m4, mfd/bi_io.m4, mfd/pp.c, mfd/main.c: Use c-ctype,
instead of ctype.
git-svn-id: file:///svnroot/mailfromd/trunk@1700 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parsetime.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/parsetime.c b/lib/parsetime.c index c2c76901..2ae011f5 100644 --- a/lib/parsetime.c +++ b/lib/parsetime.c @@ -20,7 +20,7 @@ #include <stdlib.h> #include <string.h> #include <time.h> -#include <ctype.h> +#include <c-ctype.h> static int time_multiplier(const char *str, unsigned *m, unsigned *plen) @@ -41,7 +41,7 @@ time_multiplier(const char *str, unsigned *m, unsigned *plen) int slen; for (slen = 0; str[slen]; slen++) - if (isspace(str[slen])) + if (c_isspace(str[slen])) break; for (p = tab; p->name; p++) { @@ -73,21 +73,21 @@ parse_time_interval(const char *str, time_t *pint, const char **endp) unsigned long n; unsigned mul, len; - while (*str && isspace(*str)) + while (*str && c_isspace(*str)) str++; - if (!isdigit(*str) && time_multiplier(str, &mul, &len) == 0) { + if (!c_isdigit(*str) && time_multiplier(str, &mul, &len) == 0) { n = 1; str += len; } else { n = strtoul(str, &p, 10); - if (*p && !isspace(*p)) { + if (*p && !c_isspace(*p)) { str = p; rc = 1; break; } - while (*p && isspace(*p)) + while (*p && c_isspace(*p)) p++; str = p; |