aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-08-24 17:48:40 +0800
committerbapt <bapt@FreeBSD.org>2012-08-24 17:48:40 +0800
commit7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587 (patch)
tree6887a8b783542af103314acebfaf0051c91858c3
parentd221664a64cca9265429591f63385eb18f53d175 (diff)
downloadfreebsd-ports-gnome-7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587.tar.gz
freebsd-ports-gnome-7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587.tar.zst
freebsd-ports-gnome-7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587.zip
- Fix build with clang
-rw-r--r--sysutils/agef/files/patch-agef.c61
1 files changed, 32 insertions, 29 deletions
diff --git a/sysutils/agef/files/patch-agef.c b/sysutils/agef/files/patch-agef.c
index cdce7fdba9bc..136ca59cd3e2 100644
--- a/sysutils/agef/files/patch-agef.c
+++ b/sysutils/agef/files/patch-agef.c
@@ -1,29 +1,32 @@
-*** agef.c.orig Sat Jan 21 22:23:18 2006
---- agef.c Sat Jan 21 22:23:36 2006
-***************
-*** 75,86 ****
- unsigned ages[MAXAGES]; /* age categories */
- int inodes[MAXAGES];/* inode count */
- long sizes[MAXAGES]; /* block count */
-
- char topdir[NAMELEN];/* our starting directory */
-! long today,
-! time(); /* today's date */
-
-
-
- main(argc, argv)
- int argc;
---- 75,86 ----
- unsigned ages[MAXAGES]; /* age categories */
- int inodes[MAXAGES];/* inode count */
- long sizes[MAXAGES]; /* block count */
-
- char topdir[NAMELEN];/* our starting directory */
-! long today;
-! time_t time(); /* today's date */
-
-
-
- main(argc, argv)
- int argc;
+--- ./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;
+ {