summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-06 19:15:45 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-06 20:01:55 +0100
commit46f5203a8d1a05e464b5138b512d81a86dca6517 (patch)
tree2484ec94175c8936caca7d4552d002f3be6f33d4 /tcpdump.c
parentd714c9b427ae38d12423e6cc0f718a06d1f7c158 (diff)
downloadtcpdump-46f5203a8d1a05e464b5138b512d81a86dca6517.tar.gz
Style update
Use parens around the sizeof argument, to match the style used elsewhere.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 81321f79..f0505fe2 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1327,7 +1327,7 @@ main(int argc, char **argv)
/*
* Initialize the netdissect code.
*/
- if (nd_init(ebuf, sizeof ebuf) == -1)
+ if (nd_init(ebuf, sizeof(ebuf)) == -1)
error("%s", ebuf);
memset(ndo, 0, sizeof(*ndo));
@@ -1528,7 +1528,7 @@ main(int argc, char **argv)
case 'm':
if (nd_have_smi_support()) {
- if (nd_load_smi_module(optarg, ebuf, sizeof ebuf) == -1)
+ if (nd_load_smi_module(optarg, ebuf, sizeof(ebuf)) == -1)
error("%s", ebuf);
} else {
(void)fprintf(stderr, "%s: ignoring option `-m %s' ",