Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/ipf/lib backout previous. ISDIGIT is used all over the ...
details: https://anonhg.NetBSD.org/src/rev/a5a218064ac0
branches: trunk
changeset: 580973:a5a218064ac0
user: christos <christos%NetBSD.org@localhost>
date: Wed May 18 00:54:14 2005 +0000
description:
backout previous. ISDIGIT is used all over the place without a cast.
diffstat:
dist/ipf/lib/addicmp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6520a84e4a70 -r a5a218064ac0 dist/ipf/lib/addicmp.c
--- a/dist/ipf/lib/addicmp.c Wed May 18 00:50:24 2005 +0000
+++ b/dist/ipf/lib/addicmp.c Wed May 18 00:54:14 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: addicmp.c,v 1.6 2005/05/18 00:15:52 christos Exp $ */
+/* $NetBSD: addicmp.c,v 1.7 2005/05/18 00:54:14 christos Exp $ */
/*
* Copyright (C) 1993-2001 by Darren Reed.
@@ -36,7 +36,7 @@
return -1;
if (!fp->fr_proto) /* to catch lusers */
fp->fr_proto = IPPROTO_ICMP;
- if (ISDIGIT((unsigned char)***cp)) {
+ if (ISDIGIT(***cp)) {
if (!ratoi(**cp, &i, 0, 255)) {
fprintf(stderr,
"%d: Invalid icmp-type (%s) specified\n",
@@ -70,7 +70,7 @@
if (**cp && strcasecmp("code", **cp))
return 0;
(*cp)++;
- if (ISDIGIT((unsigned char)***cp)) {
+ if (ISDIGIT(***cp)) {
if (!ratoi(**cp, &i, 0, 255)) {
fprintf(stderr,
"%d: Invalid icmp code (%s) specified\n",
Home |
Main Index |
Thread Index |
Old Index