aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/dissectors/packet-mq.h3
-rwxr-xr-xtools/checkAPIs.pl2
2 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mq.h b/epan/dissectors/packet-mq.h
index cc722cb6f9..94eab327fa 100644
--- a/epan/dissectors/packet-mq.h
+++ b/epan/dissectors/packet-mq.h
@@ -31,8 +31,7 @@
#define GET_VALSV(A) mq_##A##_vals
#define GET_VALSP(F) (gchar *)GET_VALSV(F)
-#define DEF_VALSB(A) \
-const value_string mq_##A##_vals[] = \
+#define DEF_VALSB(A) const value_string mq_##A##_vals[] = \
{
#define DEF_VALS1(A) { (guint32)MQ_##A, #A }
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 6080e9d145..5a9da1131d 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1880,7 +1880,7 @@ my $SingleQuotedStr = qr{ (?: \' (?: \\. | [^\'\\])* [']) }x;
my $StaticRegex = qr/ static \s+ /xs;
my $ConstRegex = qr/ const \s+ /xs;
my $Static_andor_ConstRegex = qr/ (?: $StaticRegex $ConstRegex | $StaticRegex | $ConstRegex) /xs;
-my $ValueStringRegex = qr/ $Static_andor_ConstRegex (?:value|string|range)_string \ + [^;*]+ = [^;]+ [{] [^;]+ ; /xs;
+my $ValueStringRegex = qr/ ^ \s* $Static_andor_ConstRegex (?:value|string|range)_string \ + [^;*]+ = [^;]+ [{] [^;]+ ; /xms;
my $EnumValRegex = qr/ $Static_andor_ConstRegex enum_val_t \ + [^;*]+ = [^;]+ [{] [^;]+ ; /xs;
#