]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afsd-warning-cleanup-20011005
authorNathan Neulinger <nneul@umr.edu>
Fri, 5 Oct 2001 22:03:16 +0000 (22:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 5 Oct 2001 22:03:16 +0000 (22:03 +0000)
clean up warnings in afsd directory

src/afsd/afsd.c
src/afsd/vsys.c

index efacd09838108c28e4d5bcf194c039c5ae4738ad..962984b4f6d43ac7c877b680027afc3c1f41f194 100644 (file)
@@ -113,6 +113,14 @@ RCSID("$Header$");
 #include <sys/vfs.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
 #include <netinet/in.h>
 #include <afs/afs_args.h>
 #include <afs/cellconfig.h>
index 9235f51750dc1e5014450352ab5f42db3ef3512b..791b85ce855f04d9acc5b3efad0414579528d8b6 100644 (file)
@@ -9,6 +9,19 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 RCSID("$Header$");
 
@@ -46,4 +59,5 @@ main (argc, argv)
     }
     code = syscall(AFS_SYSCALL, parms[0], parms[1], parms[2], parms[3], parms[4], parms[5]);
     printf("code %d\n", code);
+    return 0;
 }