aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/diff/context.c.diff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-06-15 07:09:34 +0000
committerXin LI <delphij@FreeBSD.org>2007-06-15 07:09:34 +0000
commitb6ee6822f3aaa48915f6853b3c12e6e40e304761 (patch)
tree8e4e5932bdfd43357d5df21a2be1e0a4eb0aff99 /gnu/usr.bin/diff/context.c.diff
parent3070b401349b9c1164df48d854b1cd23fb958e7e (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/diff/context.c.diff')
-rw-r--r--gnu/usr.bin/diff/context.c.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/usr.bin/diff/context.c.diff b/gnu/usr.bin/diff/context.c.diff
new file mode 100644
index 000000000000..d7d207320a69
--- /dev/null
+++ b/gnu/usr.bin/diff/context.c.diff
@@ -0,0 +1,21 @@
+$FreeBSD$
+--- context.c.orig 2004-04-12 15:44:35.000000000 +0800
++++ context.c 2007-06-15 14:51:05.497679903 +0800
+@@ -29,7 +29,7 @@
+ # define TIMESPEC_NS(timespec) 0
+ #endif
+
+-size_t nstrftime (char *, size_t, char const *, struct tm const *, int, int);
++size_t nstrftime (char *, size_t, char const *, struct tm const *, int, long);
+
+ static char const *find_function (char const * const *, lin);
+ static struct change *find_hunk (struct change *);
+@@ -57,7 +57,7 @@
+ char buf[MAX (INT_STRLEN_BOUND (int) + 32,
+ INT_STRLEN_BOUND (time_t) + 11)];
+ struct tm const *tm = localtime (&inf->stat.st_mtime);
+- int nsec = TIMESPEC_NS (inf->stat.st_mtim);
++ long nsec = TIMESPEC_NS (inf->stat.st_mtimespec);
+ if (! (tm && nstrftime (buf, sizeof buf, time_format, tm, 0, nsec)))
+ {
+ long int sec = inf->stat.st_mtime;