diff options
author | Brad King <brad.king@kitware.com> | 2002-06-18 21:19:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-06-18 21:19:38 (GMT) |
commit | 05e162f00ad198d65aa83be1e5ea1d07b0838563 (patch) | |
tree | a5b0b10eab44225cca65e0449cadc69eec75fbae /Source/CursesDialog/form/fty_ipv4.c | |
parent | 589cf38a365bd6453d93be27ee2b824cf9e6c7d6 (diff) | |
download | CMake-05e162f00ad198d65aa83be1e5ea1d07b0838563.zip CMake-05e162f00ad198d65aa83be1e5ea1d07b0838563.tar.gz CMake-05e162f00ad198d65aa83be1e5ea1d07b0838563.tar.bz2 |
ERR: Fixed compiler warnings when using strict ansi.
Diffstat (limited to 'Source/CursesDialog/form/fty_ipv4.c')
-rw-r--r-- | Source/CursesDialog/form/fty_ipv4.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/CursesDialog/form/fty_ipv4.c b/Source/CursesDialog/form/fty_ipv4.c index d7f2296..4ac8a50 100644 --- a/Source/CursesDialog/form/fty_ipv4.c +++ b/Source/CursesDialog/form/fty_ipv4.c @@ -32,13 +32,15 @@ static bool Check_IPV4_Field(FIELD * field, const void * argp) int num = 0, len; unsigned int d1, d2, d3, d4; - if(isdigit(*bp)) /* Must start with digit */ + argp=0; /* Silence unused parameter warning. */ + + if(isdigit((int)(*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((int)(*bp))) bp++; /* Allow trailing whitespace */ } } @@ -59,6 +61,7 @@ static bool Check_IPV4_Field(FIELD * field, const void * argp) +--------------------------------------------------------------------------*/ static bool Check_IPV4_Character(int c, const void * argp) { + argp=0; /* Silence unused parameter warning. */ return ((isdigit(c) || (c=='.')) ? TRUE : FALSE); } |