diff options
author | Justin Pettit <jpettit@nicira.com> | 2009-08-25 14:11:44 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2009-08-25 14:11:44 -0700 |
commit | be2c418b73fcb6c606725d84c18b0ad618082c75 (patch) | |
tree | e544e801ce0d59f1977892bff5b0a4b665203f71 /SubmittingPatches | |
parent | 00908dc27a4d93bd1c5bda3bcdc84ec351e9a09a (diff) |
Cleanup isdigit() warnings.
NetBSD's gcc complains if isdigit()'s argument is an unadorned char. This
provides an appropriate cast.
Diffstat (limited to 'SubmittingPatches')
-rw-r--r-- | SubmittingPatches | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SubmittingPatches b/SubmittingPatches index 50398f89..917cddbf 100644 --- a/SubmittingPatches +++ b/SubmittingPatches @@ -180,7 +180,7 @@ index 32647ea..00cffbc 100644 - svec_init(&new_br); - for (i = 0; i < raw_new_br.n; i++) { - const char *name = raw_new_br.names[i]; -- if (!strncmp(name, "dp", 2) && isdigit(name[2])) { +- if (!strncmp(name, "dp", 2) && isdigit((unsigned char)name[2])) { - VLOG_ERR("%s is not a valid bridge name (bridges may not be " - "named \"dp\" followed by a digit)", name); - } else { |