From 05e72d3a88195dae72ed3ce30cab984cdb97969c Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 21 May 2011 00:43:57 +0200 Subject: [PATCH] Revert "objformat(1): Remove an unneeded default case." This reverts commit 6308114003c9933e09f3d6362af7e14638b6c223. There are numerous ways to pass garbage to the switch(), even with an enum, so we want the default. Pointed-out-by: aggelos --- usr.bin/objformat/objformat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/objformat/objformat.c b/usr.bin/objformat/objformat.c index 85e3a33ce2..f82f9c94f6 100644 --- a/usr.bin/objformat/objformat.c +++ b/usr.bin/objformat/objformat.c @@ -135,6 +135,9 @@ main(int argc, char **argv) break; case OBJFORMAT: break; + default: + errx(1, "unknown command type"); + break; } } -- 2.41.0