diff options
author | brian <brian@FreeBSD.org> | 1999-12-20 20:30:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-12-20 20:30:30 +0000 |
commit | 32de0263167a10beb209676812c3d2a4faba5df6 (patch) | |
tree | 83252949856bc9c4808e376749341d328042d23b /usr.sbin | |
parent | 0a37c5b3adc8d2ab7afb405ebd6cda1842b9ad2e (diff) | |
download | FreeBSD-src-32de0263167a10beb209676812c3d2a4faba5df6.zip FreeBSD-src-32de0263167a10beb209676812c3d2a4faba5df6.tar.gz |
Cosmetic: clean up some parenthesis confusion
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/systems.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index cc18719..a29b902 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -323,14 +323,9 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, break; default: - if ((wp = findblank(cp, 0)) != NULL) { - while (issep(*wp)) - *wp++ = '\0'; - if (*wp != '#' && *wp != '\0') { - log_Printf(LogWARN, "Bad label in %s (line %d) - too many words.\n", - filename, linenum); - continue; - } + if ((wp = findblank(cp, 0)) != NULL && *wp == '#') { + *wp = '\0'; + cp = strip(cp); } wp = strchr(cp, ':'); if (wp == NULL || wp[1] != '\0') { @@ -368,8 +363,8 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file, log_Printf(LogWARN, "%s: %d: Syntax error\n", filename, linenum); else { allowcmd = argc > 0 && !strcasecmp(argv[0], "allow"); - if ((!(how == SYSTEM_EXEC) && allowcmd) || - ((how == SYSTEM_EXEC) && !allowcmd)) { + if ((how != SYSTEM_EXEC && allowcmd) || + (how == SYSTEM_EXEC && !allowcmd)) { /* * Disable any context so that warnings are given to everyone, * including syslog. |