summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/form/fty_ipv4.c
diff options
context:
space:
mode:
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);
}