#include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
#include <fcntl.h>
#include <afs/stds.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
-#include <string.h>
-#else
+#ifdef HAVE_STRINGS_H
#include <strings.h>
+#else
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
#endif
#include "afsutil.h"
#include "fileutil.h"
char tbuffer[1024];
char *info;
int len;
- int i;
char *name;
currenttime = time(0);
#endif
}
-static void DebugOn(int loglevel)
+static int DebugOn(int loglevel)
{
if (loglevel == 0) {
ViceLog(0, ("Reset Debug levels to 0\n"));
} else {
ViceLog(0, ("Set Debug On level = %d\n",loglevel));
}
+ return 0;
} /*DebugOn*/
#if defined(AFS_PTHREAD_ENV)
DebugOn(LogLevel);
#else /* AFS_PTHREAD_ENV */
- IOMGR_SoftSig(DebugOn, LogLevel);
+ IOMGR_SoftSig(DebugOn, (void *)LogLevel);
#endif /* AFS_PTHREAD_ENV */
signal(signo, ResetDebug_Signal); /* on some platforms, this signal */
#ifndef AFS_NT40_ENV
if ( serverLogSyslog ) {
openlog(NULL, LOG_PID, serverLogSyslogFacility);
- return;
+ return(0);
}
#endif