From: Gustavo Martin Morcuende Date: Sun, 29 May 2016 18:47:32 +0000 (+0200) Subject: locks: retrieving optarg X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=ca706e74e1e80b519f6f2424bd152b0b61ba492f;p=CForFun.git locks: retrieving optarg --- 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;