diff options
author | peter <peter@FreeBSD.org> | 2001-05-17 08:21:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-05-17 08:21:06 +0000 |
commit | 2d92ca4d1406bb14f0584ee668516b4c3303416c (patch) | |
tree | ddc5913d13b386dceb6b29644af208b011ae2bad /contrib/ncurses/form/fty_ipv4.c | |
parent | 5411edc0fbb52100d0c701ae4710b831a88fe7d5 (diff) | |
parent | b7ada7f2444f41b672faef4f93e446bdf8584cf9 (diff) | |
download | FreeBSD-src-2d92ca4d1406bb14f0584ee668516b4c3303416c.zip FreeBSD-src-2d92ca4d1406bb14f0584ee668516b4c3303416c.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r76726,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/ncurses/form/fty_ipv4.c')
-rw-r--r-- | contrib/ncurses/form/fty_ipv4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/ncurses/form/fty_ipv4.c b/contrib/ncurses/form/fty_ipv4.c index 064c02c..f49dcdb 100644 --- a/contrib/ncurses/form/fty_ipv4.c +++ b/contrib/ncurses/form/fty_ipv4.c @@ -13,7 +13,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fty_ipv4.c,v 1.2 1997/04/26 22:06:00 tom Exp $") +MODULE_ID("$Id: fty_ipv4.c,v 1.4 2000/12/09 23:46:12 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnform @@ -32,13 +32,13 @@ static bool Check_IPV4_Field(FIELD * field, const void * argp GCC_UNUSED) int num = 0, len; unsigned int d1, d2, d3, d4; - if(isdigit(*bp)) /* Must start with digit */ + if(isdigit((unsigned char)*bp)) /* Must start with digit */ { num = sscanf(bp, "%u.%u.%u.%u%n", &d1, &d2, &d3, &d4, &len); if (num == 4) { bp += len; /* Make bp point to what sscanf() left */ - while (*bp && isspace(*bp)) + while (*bp && isspace((unsigned char)*bp)) bp++; /* Allow trailing whitespace */ } } @@ -76,6 +76,6 @@ static FIELDTYPE typeIPV4 = { NULL }; -FIELDTYPE* TYPE_IPV4 = &typeIPV4; +NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_IPV4 = &typeIPV4; /* fty_ipv4.c ends here */ |