From 3848ad0d09e4482efed2a89114ea3ce7147b7345 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Wed, 6 Jun 2001 23:00:47 +0000 Subject: [PATCH] sys-warnings-and-unused-variables-cleanup-20010606 clean up sys subtree --- src/sys/Makefile | 2 +- src/sys/pagsh.c | 24 ++++++++++++++---------- src/sys/rmtsysc.c | 4 ++++ src/sys/rmtsyss.c | 4 ++++ 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/sys/Makefile b/src/sys/Makefile index 72267e6e0..a2a40157a 100644 --- a/src/sys/Makefile +++ b/src/sys/Makefile @@ -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 diff --git a/src/sys/pagsh.c b/src/sys/pagsh.c index 3a10691e0..75a774233 100644 --- a/src/sys/pagsh.c +++ b/src/sys/pagsh.c @@ -8,20 +8,29 @@ */ #include +#include #ifdef AFS_AIX32_ENV #include #endif #include +#include +#ifndef AFS_NT40_ENV +#include +#endif +#ifdef HAVE_STRING_H +#include +#endif #include - -#ifdef notdef -/* AFS_KERBEROS_ENV is now conditionally defined in the Makefile */ -#define AFS_KERBEROS_ENV +#ifdef AFS_KERBEROS_ENV +#include +#include #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 -#include - -extern char *malloc(); - static afs_uint32 curpag() { afs_uint32 groups[30]; diff --git a/src/sys/rmtsysc.c b/src/sys/rmtsysc.c index 9b8fe1548..341624293 100644 --- a/src/sys/rmtsysc.c +++ b/src/sys/rmtsysc.c @@ -13,6 +13,7 @@ * calls of setpag, and pioctl are supported. */ #include +#include #include #include #include @@ -26,6 +27,9 @@ #endif #include #include +#ifdef HAVE_STRING_H +#include +#endif #include #include "rmtsys.h" diff --git a/src/sys/rmtsyss.c b/src/sys/rmtsyss.c index e076acf77..2d47b054c 100644 --- a/src/sys/rmtsyss.c +++ b/src/sys/rmtsyss.c @@ -13,6 +13,7 @@ * This module resides in the lib/afs/librmtsys.a library. */ #include +#include #include #include #include @@ -23,6 +24,9 @@ #include #include #include +#ifdef HAVE_STRING_H +#include +#endif /*#include */ #include "rmtsys.h" -- 2.39.5