From 132f533dac7211d0d98bf3e56112db156a4b2cf7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 9 May 2014 11:38:53 +0200 Subject: [PATCH] netsniff-ng: Remove unnecessary initialization of struct ctx members These will be set later on depending on command line option (or panic() out) and they're set to 0 by init_ctx() anyways. Signed-off-by: Tobias Klauser --- netsniff-ng.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/netsniff-ng.c b/netsniff-ng.c index 52ec00f4..5ce64e5a 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -1196,8 +1196,6 @@ int main(int argc, char **argv) break; case 'S': ptr = optarg; - ctx.reserve_size = 0; - for (j = i = strlen(optarg); i > 0; --i) { if (!isdigit(optarg[j - i])) break; @@ -1264,8 +1262,6 @@ int main(int argc, char **argv) break; case 'F': ptr = optarg; - ctx.dump_interval = 0; - for (j = i = strlen(optarg); i > 0; --i) { if (!isdigit(optarg[j - i])) break; -- 2.11.4.GIT