From ca706e74e1e80b519f6f2424bd152b0b61ba492f Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 29 May 2016 20:47:32 +0200 Subject: [PATCH] locks: retrieving optarg --- locks/locks.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/locks/locks.c b/locks/locks.c index 75b8e16..0eb34b7 100644 --- a/locks/locks.c +++ b/locks/locks.c @@ -1,7 +1,5 @@ #include #include -#include -#include #include #include #include @@ -41,7 +39,7 @@ int main (int argc, char *argv[]) bool isThread = false; opterr = 0; - while ((c = getopt (argc, argv, "p:tf:")) != -1) { + while ((c = getopt (argc, argv, "p:t:f:")) != -1) { switch (c) { case 'p': fileName = optarg; -- 2.1.4