summaryrefslogtreecommitdiffstats
path: root/sbin/routed
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-07-22 05:49:36 +0000
committerphk <phk@FreeBSD.org>1998-07-22 05:49:36 +0000
commiteb2700b9adc82071e3f475ef4b7fff1791dd2c6f (patch)
tree001a5be02a73995ae15869298e1e7ec63ecc2a16 /sbin/routed
parent7ebd4f74fbc6a8f7433b4480b4e1983271902485 (diff)
downloadFreeBSD-src-eb2700b9adc82071e3f475ef4b7fff1791dd2c6f.zip
FreeBSD-src-eb2700b9adc82071e3f475ef4b7fff1791dd2c6f.tar.gz
/usr/src/sbin/routed/parms.c and .../routed/rtquery/rtquery.c both
contain code that compare a char pointer with a char. As this doesn't make much sense, it looks very much as if a '*' has been dropped by mistake. I have made no analysis of the possible consequences of the problem. PR: 7319 Reviewed by: phk Submitted by: Anders Thulin <Anders.X.Thulin@telia.se>
Diffstat (limited to 'sbin/routed')
-rw-r--r--sbin/routed/parms.c4
-rw-r--r--sbin/routed/rtquery/rtquery.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/routed/parms.c b/sbin/routed/parms.c
index d6cc1a4..287a82f 100644
--- a/sbin/routed/parms.c
+++ b/sbin/routed/parms.c
@@ -36,7 +36,7 @@ static char sccsid[] = "@(#)if.c 8.1 (Berkeley) 6/5/93";
#elif defined(__NetBSD__)
static char rcsid[] = "$NetBSD$";
#endif
-#ident "$Revision: 1.1.1.3 $"
+#ident "$Revision: 1.2 $"
#include "defs.h"
#include "pathnames.h"
@@ -376,7 +376,7 @@ parse_quote(char **linep,
if (c == '\0')
break;
- if (c == '\\' && pc != '\0') {
+ if (c == '\\' && *pc != '\0') {
if ((c = *pc++) == 'n') {
c = '\n';
} else if (c == 'r') {
diff --git a/sbin/routed/rtquery/rtquery.c b/sbin/routed/rtquery/rtquery.c
index 7f29605..783c561 100644
--- a/sbin/routed/rtquery/rtquery.c
+++ b/sbin/routed/rtquery/rtquery.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 6/5/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: rtquery.c,v 1.7 1998/01/14 07:17:12 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -797,7 +797,7 @@ parse_quote(char **linep,
if (c == '\0')
break;
- if (c == '\\' && pc != '\0') {
+ if (c == '\\' && *pc != '\0') {
if ((c = *pc++) == 'n') {
c = '\n';
} else if (c == 'r') {
OpenPOWER on IntegriCloud