From ab651922a29575f85c6ab6fe89d2f0b57f5080c6 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 24 May 2002 07:02:04 +0000 Subject: [PATCH] Fix warnings: deprecated use of label at end of compound statement --- sys/netgraph/ng_base.c | 1 + sys/netgraph/ng_parse.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index aa392c742ae1..04a5ee91992e 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -3133,6 +3133,7 @@ ng_free_item(item_p item) _NGI_ARG1(item) = NULL; _NGI_ARG2(item) = 0; case NGQF_UNDEF: + break; } /* If we still have a node or hook referenced... */ _NGI_CLR_NODE(item); diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index 4ea9abed71c5..2ce312c43bda 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -1201,7 +1201,6 @@ ng_parse_composite(const struct ng_parse_type *type, const char *s, } nextIndex = index + 1; *off += len + len2; -gotIndex: } else { /* a structure field */ const struct ng_parse_struct_field *field = NULL; const struct ng_parse_struct_info *si = type->info; @@ -1230,6 +1229,7 @@ gotIndex: } *off += len; } +gotIndex: /* Check array index */ if (index >= num) {