summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/form/fty_ipv4.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-06-18 21:19:38 (GMT)
committerBrad King <brad.king@kitware.com>2002-06-18 21:19:38 (GMT)
commit05e162f00ad198d65aa83be1e5ea1d07b0838563 (patch)
treea5b0b10eab44225cca65e0449cadc69eec75fbae /Source/CursesDialog/form/fty_ipv4.c
parent589cf38a365bd6453d93be27ee2b824cf9e6c7d6 (diff)
downloadCMake-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.c7
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);
}