diff --git a/src/audit/audit.c b/src/audit/audit.c index d42b44fd8a..7c35882486 100644 --- a/src/audit/audit.c +++ b/src/audit/audit.c @@ -61,8 +61,9 @@ int osi_echo_trail = (-1); FILE *auditout = NULL; -int osi_audit_check(); +int osi_audit_check(void); +#ifdef AFS_AIX32_ENV static void audmakebuf(char *audEvent, va_list vaList) { @@ -73,7 +74,6 @@ audmakebuf(char *audEvent, va_list vaList) int vaInt; afs_int32 vaLong; char *vaStr; - va_list vaLst; struct AFSFid *vaFid; vaEntry = va_arg(vaList, int); @@ -148,6 +148,7 @@ audmakebuf(char *audEvent, va_list vaList) vaEntry = va_arg(vaList, int); } /* end while */ } +#endif static void printbuf(FILE *out, int rec, char *audEvent, char *afsName, afs_int32 hostId, @@ -157,7 +158,6 @@ printbuf(FILE *out, int rec, char *audEvent, char *afsName, afs_int32 hostId, int vaInt; afs_int32 vaLong; char *vaStr; - va_list vaLst; struct AFSFid *vaFid; struct AFSCBFids *vaFids; int num = LogThreadNum(); @@ -526,7 +526,7 @@ osi_auditU(struct rx_call *call, char *audEvent, int errCode, ...) * ************************************************************************** */ int -osi_audit_check() +osi_audit_check(void) { FILE *fds; int onoff;