diff options
author | bapt <bapt@FreeBSD.org> | 2012-08-24 17:48:40 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-08-24 17:48:40 +0800 |
commit | 7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587 (patch) | |
tree | 6887a8b783542af103314acebfaf0051c91858c3 /sysutils | |
parent | d221664a64cca9265429591f63385eb18f53d175 (diff) | |
download | freebsd-ports-gnome-7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587.tar.gz freebsd-ports-gnome-7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587.tar.zst freebsd-ports-gnome-7dc53b18048dd7c7e5923ebbdb2cce0e9adb6587.zip |
- Fix build with clang
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/agef/files/patch-agef.c | 61 |
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; + { |