summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-07 09:43:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-07 09:43:01 +0000
commit1fff880ff7d60411b2b658d60bf5d2aa3f05caa1 (patch)
treec379b5aab32257086a7ec6bb9273bf2729e78bcb /sbin
parent7b3a227fa9e7941a2ac6eaec522cf474ffaa27b3 (diff)
another piece inside qflag check
Diffstat (limited to 'sbin')
-rw-r--r--sbin/route/route.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index ebfbf73006a..195206b251c 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.63 2004/01/18 12:26:16 markus Exp $ */
+/* $OpenBSD: route.c,v 1.64 2004/04/07 09:43:00 deraadt Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
#else
-static const char rcsid[] = "$OpenBSD: route.c,v 1.63 2004/01/18 12:26:16 markus Exp $";
+static const char rcsid[] = "$OpenBSD: route.c,v 1.64 2004/04/07 09:43:00 deraadt Exp $";
#endif
#endif /* not lint */
@@ -811,23 +811,23 @@ newroute(int argc, char **argv)
}
if (ret == 0)
(void) printf("\n");
- }
- if (ret != 0) {
- switch (oerrno) {
- case ESRCH:
- err = "not in table";
- break;
- case EBUSY:
- err = "entry in use";
- break;
- case ENOBUFS:
- err = "routing table overflow";
- break;
- default:
- err = strerror(oerrno);
- break;
+ if (ret != 0) {
+ switch (oerrno) {
+ case ESRCH:
+ err = "not in table";
+ break;
+ case EBUSY:
+ err = "entry in use";
+ break;
+ case ENOBUFS:
+ err = "routing table overflow";
+ break;
+ default:
+ err = strerror(oerrno);
+ break;
+ }
+ (void) printf(": %s\n", err);
}
- (void) printf(": %s\n", err);
}
return (ret != 0);
}