[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bgpctl typo & redundant exit()
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: bgpctl typo & redundant exit()
- From: Jared Yanovich <jjy2+_(_at_)_pitt_(_dot_)_edu>
- Date: Wed, 21 Jan 2004 17:20:39 -0500
Index: bgpctl.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpctl/bgpctl.c,v
retrieving revision 1.32
diff -u -r1.32 bgpctl.c
--- bgpctl.c 2004/01/20 13:11:39 1.32
+++ bgpctl.c 2004/01/21 22:21:34
@@ -143,7 +143,6 @@
strlcpy(sun.sun_path, SOCKET_NAME, sizeof(sun.sun_path));
if (connect(fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) {
err(1, "connect: %s", SOCKET_NAME);
- exit(1);
}
imsg_init(&ibuf, fd);
@@ -337,7 +336,7 @@
}
if (match > 1)
- errx(1, "ambigous command: %s", word);
+ errx(1, "ambiguous command: %s", word);
if (match < 1)
errx(1, "unknown command: %s", word);
Visit your host, monkey.org