blob: 4661d739ebc96ed4ea744f9dde442cb500174965 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- 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 */
|