[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bgpctl typo & redundant exit()



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);