aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/editcap.c b/editcap.c
index b06a397c81..3a7b67e29c 100644
--- a/editcap.c
+++ b/editcap.c
@@ -966,12 +966,7 @@ main(int argc, char *argv[])
case 'C':
{
int choplen = 0, chopoff = 0;
-#if 0
- int choplen_begin = 0; /* No chop at beginning */
- int choplen_end = 0; /* No chop at end */
- int chopoff_begin_pos = 0, chopoff_begin_neg = 0;/* Offsets for chopping from beginning */
- int chopoff_end_pos = 0, chopoff_end_neg = 0; /* Offset for chopping from end */
-#endif
+
switch (sscanf(optarg, "%d:%d", &chopoff, &choplen)) {
case 1: /* only the chop length was specififed */
choplen = chopoff;