aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--ip.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ip.c b/ip.c
index f2506bb..7238700 100644
--- a/ip.c
+++ b/ip.c
@@ -34,10 +34,12 @@
const char *ipproto_name(uint8_t proto)
{
switch (proto) {
-#define CASE(s) \
- static_assert(sizeof(s) <= IPPROTO_STRLEN, \
- "Increase IPPROTO_STRLEN to contain " #s); \
- return s;
+#define CASE(s) \
+ { \
+ static_assert(sizeof(s) <= IPPROTO_STRLEN, \
+ "Increase IPPROTO_STRLEN to contain " #s); \
+ return s; \
+ }
case IPPROTO_ICMP:
CASE("ICMP");
case IPPROTO_TCP: