exit(1) is better for the impossible condition
authortedu <tedu@openbsd.org>
Fri, 16 Oct 2015 01:37:14 +0000 (01:37 +0000)
committertedu <tedu@openbsd.org>
Fri, 16 Oct 2015 01:37:14 +0000 (01:37 +0000)
usr.sbin/rebound/rebound.c

index ebc98ec..a0e37f3 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.14 2015/10/15 22:21:28 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.15 2015/10/16 01:37:14 tedu Exp $ */
 /*
  * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
  *
@@ -452,7 +452,8 @@ launch(const char *confname, int ud, int ld, int kq)
                }
 
        }
-       exit(0);
+       /* not reached */
+       exit(1);
 }
 
 static void __dead