38 lines
816 B
Text
38 lines
816 B
Text
--- misc.c 1991-11-08 07:10:03.000000000 -0500
|
|
+++ misc.c 2013-04-23 17:48:12.000000000 -0400
|
|
@@ -12,5 +12,7 @@
|
|
*/
|
|
|
|
+#include <libgen.h>
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|
|
@@ -21,18 +23,9 @@
|
|
#endif
|
|
#include <time.h>
|
|
+#include <rpc/rpc.h>
|
|
#include "rmsg.h"
|
|
#include "rmsgprot.h"
|
|
|
|
-char *append(), *ctime(), *malloc(), *strcpy();
|
|
-long time();
|
|
-
|
|
-char *basename(x)
|
|
-char *x;
|
|
-{
|
|
- char *tmp;
|
|
- if (tmp = rindex (x, '/')) tmp++;
|
|
- else tmp = x;
|
|
- return (tmp);
|
|
-}
|
|
+static char *append();
|
|
|
|
/*
|
|
@@ -107,5 +100,5 @@
|
|
break;
|
|
case 'd':
|
|
- now = time((long *) NULL);
|
|
+ now = time(NULL);
|
|
p = ctime (&now);
|
|
/* We don't want the cr */
|