Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Silence some compiler warnings.
[fs/lustre-release.git]
/
lustre
/
tests
/
tchmod.c
diff --git
a/lustre/tests/tchmod.c
b/lustre/tests/tchmod.c
index
9fcb1ac
..
08732ff
100644
(file)
--- a/
lustre/tests/tchmod.c
+++ b/
lustre/tests/tchmod.c
@@
-1,5
+1,6
@@
#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@@
-13,5
+14,5
@@
int main(int argc, char **argv)
}
mode = strtoul(argv[1], NULL, 8);
- return chmod(argv[2], mode);
+ return chmod(argv[2], mode)
? errno : 0
;
}