summaryrefslogtreecommitdiffstats
path: root/contrib/global/lib/test.c
diff options
context:
space:
mode:
authorcwt <cwt@FreeBSD.org>1997-12-15 23:23:35 +0000
committercwt <cwt@FreeBSD.org>1997-12-15 23:23:35 +0000
commit7cb55de6f5fe34cf96591b368ea2596664c34a99 (patch)
tree6c996d5a5ed8fb0c736ab166bbf0422f729a3acc /contrib/global/lib/test.c
parent4fda3be4508d5e4d5cebf2deac98f970dba97f16 (diff)
downloadFreeBSD-src-7cb55de6f5fe34cf96591b368ea2596664c34a99.zip
FreeBSD-src-7cb55de6f5fe34cf96591b368ea2596664c34a99.tar.gz
Resolve -Wall issues and be stylistic about #include directives.
Diffstat (limited to 'contrib/global/lib/test.c')
-rw-r--r--contrib/global/lib/test.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/global/lib/test.c b/contrib/global/lib/test.c
index 99aae9d..a3b5966 100644
--- a/contrib/global/lib/test.c
+++ b/contrib/global/lib/test.c
@@ -31,9 +31,13 @@
* test.c 12-Dec-97
*
*/
-#include <unistd.h>
-#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/types.h>
+
+#include <unistd.h>
+
+#include "test.h"
+
/*
* test:
*
@@ -60,7 +64,7 @@ char *path;
if (stat(path, &sb) < 0)
return 0;
- while (c = *flags++) {
+ while ((c = *flags++) != NULL) {
switch (c) {
case 'f':
if (!S_ISREG(sb.st_mode))
OpenPOWER on IntegriCloud