#include <mit-copyright.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include <ctype.h>
#include <sys/time.h>
#include <sys/types.h>
#define LOGIN_LEN MAX_UNAME + 1 /* Leave room for a null */
#define UID_LEN 7 /* Allow room for a 16 bit number */
-extern char *strdup();
-extern char *malloc();
-
extern char *whoami; /* Name of program - used by libraries */
extern int errno; /* Unix error number */
{
status = FAILURE; /* Message was truncated */
/* Truncate the message */
- message[len-1] = NULL;
+ message[len-1] = '\0';
}
/* Copy the message into the packet */
#endif lint
#include <mit-copyright.h>
+#include <errno.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/wait.h>
#include <sys/signal.h>
#include <sys/ioctl.h>
+#include <time.h>
#include <fcntl.h>
#include <sys/resource.h>
#include <moira_site.h>
int rdpipe[2];
extern int errno;
-cleanup()
+void cleanup()
{
int stat, serrno = errno;
char buf[BUFSIZ];
do {
char *time_s;
- extern char *ctime();
long foo;
done = 0;