logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit 355a63f9fce9ffa034c16cfcf710878d9bc4cdcf
parent 4803da74f4d65f6248d7f22589ed8f58efc88bc6
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun, 26 Jul 2015 14:50:13 +0200

Adjusting argc & argv after arguments are processed by getopt

Diffstat:
Msrc/logswan.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/logswan.c b/src/logswan.c @@ -84,6 +84,9 @@ int main (int argc, char *argv[]) { } } + argc -= optind; + argv += optind; + if (!intputFile) { printf("ERROR : No input file specified.\n"); return EXIT_FAILURE;