summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-05-09 11:38:53 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-05-09 11:44:47 +0200
commit132f533dac7211d0d98bf3e56112db156a4b2cf7 (patch)
tree9c094e95404af186a1a854eadf9297642116972f /netsniff-ng.c
parent5381fe4fed17e813d41424ae29995d8624197a54 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 52ec00f..5ce64e5 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;