sys-warnings-and-unused-variables-cleanup-20010606
authorNathan Neulinger <nneul@umr.edu>
Wed, 6 Jun 2001 23:00:47 +0000 (23:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 6 Jun 2001 23:00:47 +0000 (23:00 +0000)
clean up sys subtree

src/sys/Makefile
src/sys/pagsh.c
src/sys/rmtsysc.c
src/sys/rmtsyss.c

index 72267e6..a2a4015 100644 (file)
@@ -14,7 +14,7 @@ include ../config/Makefile.${SYS_NAME}
 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
 
 UKERNELDIR=../libuafs/
-CFLAGS= ${DBUG}  -I${SRCDIR}include  ${XCFLAGS} ${DBG_DEFS}
+CFLAGS= ${DBUG}  -I${TOP_SRCDIR}/config -I${SRCDIR}include  ${XCFLAGS} ${DBG_DEFS}
 SFLAGS=-P -I${SRCDIR}include  
 LIBS= libsys.a ${SRCDIR}lib/librx.a libsys.a ${SRCDIR}lib/liblwp.a ${SRCDIR}lib/afs/util.a ${XLIBS}
 UKSRCS=afsl.exp
index 3a10691..75a7742 100644 (file)
@@ -8,20 +8,29 @@
  */
 
 #include <afs/param.h>
+#include <afsconfig.h>
 #ifdef AFS_AIX32_ENV
 #include <signal.h>
 #endif
 #include <stdio.h>
+#include <stdlib.h>
+#ifndef AFS_NT40_ENV
+#include <unistd.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
 #include <pwd.h>
-
-#ifdef notdef
-/* AFS_KERBEROS_ENV is now conditionally defined in the Makefile */
-#define AFS_KERBEROS_ENV
+#ifdef AFS_KERBEROS_ENV
+#include <sys/types.h>
+#include <sys/stat.h>
 #endif
 
 #include "AFS_component_version_number.c"
 
-main(argc, argv)
+extern afs_int32 setpag();
+
+int main(argc, argv)
 int argc;
 char **argv;
 {
@@ -70,11 +79,6 @@ char **argv;
 #ifdef AFS_KERBEROS_ENV
 /* stolen from auth/ktc.c */
 
-#include <sys/types.h>
-#include <sys/stat.h>
-
-extern char *malloc();
-
 static afs_uint32 curpag()
 {
     afs_uint32 groups[30];
index 9b8fe15..3416242 100644 (file)
@@ -13,6 +13,7 @@
  * calls of setpag, and pioctl are supported.
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
@@ -26,6 +27,9 @@
 #endif
 #include <sys/stat.h>
 #include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
 #include <rx/xdr.h>
 #include "rmtsys.h"
 
index e076acf..2d47b05 100644 (file)
@@ -13,6 +13,7 @@
  * This module resides in the lib/afs/librmtsys.a library.
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <afs/vice.h>
@@ -23,6 +24,9 @@
 #include <stdio.h>
 #include <rx/xdr.h>
 #include <signal.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
 /*#include <afs/cellconfig.h>*/
 #include "rmtsys.h"