summaryrefslogtreecommitdiff
path: root/sysutils/agef/files/patch-agef.c
blob: 136ca59cd3e2e8c4af473395466a1bc41828c7da (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
--- ./agef.c.orig	1989-02-26 23:37:25.000000000 +0100
+++ ./agef.c	2012-08-24 11:46:51.045913934 +0200
@@ -77,9 +77,11 @@
 long            sizes[MAXAGES];	/* block count */
 
 char            topdir[NAMELEN];/* our starting directory */
-long            today,
-                time();		/* today's date */
+long            today;
+time_t          time();		/* today's date */
 
+static void get_data(char *path);
+static void down(char *subdir);
 
 
 main(argc, argv)
@@ -198,6 +200,7 @@
   * Get the aged data on a file whose name is given.  If the file is a
   * directory, go down into it, and get the data from all files inside. 
   */
+static void
 get_data(path)
     char           *path;
 {
@@ -252,6 +255,7 @@
   * in there. 
   */
 
+static void
 down(subdir)
     char           *subdir;
 {