summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6ctl/parser.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-14 01:28:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-14 01:28:09 +0000
commite2e889605af5bf84e238e9708dd64522c016d452 (patch)
treeb83db452c613252d659b40bf96698837f3ef6e01 /usr.sbin/ospf6ctl/parser.c
parentfb4a664d7a48437f7b084941d73effdfa7148322 (diff)
please lint
Diffstat (limited to 'usr.sbin/ospf6ctl/parser.c')
-rw-r--r--usr.sbin/ospf6ctl/parser.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/ospf6ctl/parser.c b/usr.sbin/ospf6ctl/parser.c
index 0c75ef03739..27453c8ebd8 100644
--- a/usr.sbin/ospf6ctl/parser.c
+++ b/usr.sbin/ospf6ctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.1 2007/10/12 08:22:53 norby Exp $ */
+/* $OpenBSD: parser.c,v 1.2 2007/10/14 01:28:06 deraadt Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -265,6 +265,7 @@ show_valid_args(const struct token table[])
break;
case IFNAME:
fprintf(stderr, " <interface>\n");
+ break;
case ENDTOKEN:
break;
}
@@ -309,12 +310,9 @@ parse_prefix(const char *word, struct in_addr *addr, u_int8_t *prefixlen)
addr->s_addr = ina.s_addr & htonl(prefixlen2mask(bits));
*prefixlen = bits;
return (1);
- } else {
- *prefixlen = 32;
- return (parse_addr(word, addr));
}
-
- return (0);
+ *prefixlen = 32;
+ return (parse_addr(word, addr));
}
/* XXX local copy from kroute.c, should go to shared file */