Add default case to switch to silence a warning seen with gcc.
authorclaudio <claudio@openbsd.org>
Wed, 17 Aug 2022 09:15:06 +0000 (09:15 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 17 Aug 2022 09:15:06 +0000 (09:15 +0000)
usr.sbin/bgpd/printconf.c

index 11cd206..a395d17 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: printconf.c,v 1.157 2022/07/28 13:11:50 deraadt Exp $ */
+/*     $OpenBSD: printconf.c,v 1.158 2022/08/17 09:15:06 claudio Exp $ */
 
 /*
  * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -782,6 +782,8 @@ print_addpath_mode(enum addpath_mode mode)
                return "as-wide-best";
        case ADDPATH_EVAL_ALL:
                return "all";
+       default:
+               return "???";
        }
 }