projects
/
CForFun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea96961
)
locks: retrieving optarg
author
Gustavo Martin Morcuende
<gu.martinm@gmail.com>
Sun, 29 May 2016 18:47:32 +0000
(20:47 +0200)
committer
Gustavo Martin Morcuende
<gu.martinm@gmail.com>
Sun, 29 May 2016 18:47:32 +0000
(20:47 +0200)
locks/locks.c
patch
|
blob
|
history
diff --git
a/locks/locks.c
b/locks/locks.c
index
75b8e16
..
0eb34b7
100644
(file)
--- a/
locks/locks.c
+++ b/
locks/locks.c
@@
-1,7
+1,5
@@
#include <stdlib.h>
#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
@@
-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;