diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-misc/tdl/files/tdl-1.5.2-list.c.patch | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/tdl/files/tdl-1.5.2-list.c.patch')
-rw-r--r-- | app-misc/tdl/files/tdl-1.5.2-list.c.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app-misc/tdl/files/tdl-1.5.2-list.c.patch b/app-misc/tdl/files/tdl-1.5.2-list.c.patch deleted file mode 100644 index d2cc39bd49c1..000000000000 --- a/app-misc/tdl/files/tdl-1.5.2-list.c.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- tdl-1.5.2.orig/list.c -+++ tdl-1.5.2/list.c -@@ -75,14 +75,15 @@ - static void print_timestamp(int timestamp, char *leader, int indent, int monochrome)/*{{{*/ - { - char buffer[32]; -- time_t now; -+ time_t now, timestamp2; - long diff, days_ago, days_ahead; - - now = time(NULL); - diff = now - timestamp; - days_ago = (diff + ((diff > 0) ? 43200 : -43200)) / 86400; -+ timestamp2 = (time_t) timestamp; - strftime(buffer, sizeof(buffer), "%a %d %b %Y %H:%M", -- localtime((time_t *)×tamp)); -+ localtime(×tamp2)); - do_indent(indent+2); - if (days_ago < 0) { - days_ahead = - days_ago; -@@ -524,6 +525,13 @@ - * Otherwise, use the priority from the specified node, _except_ when - * that is higher than normal, in which case use normal. */ - prio_to_use = (prio_set) ? prio : ((node_prio > prio) ? prio : node_prio); -+ /* if listing up-to-some-depth (option -N) and also -+ * beginning at some top-level (option NNN) then depth must be -+ * decremented by 1 -+ * see: http://bugs.debian.org/364083 */ -+ if (options.depth > 0) { -+ options.depth--; -+ } - list_chain(&n->kids, INDENT_TAB, 0, &options, index_buffer, prio_to_use, now, hits); - } - } else if ((y[0] == '-') && (y[1] == '-')) { |