diff options
Diffstat (limited to 'pkgtools/pkg_select/patches/patch-curses__helpers.c')
-rw-r--r-- | pkgtools/pkg_select/patches/patch-curses__helpers.c | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/pkgtools/pkg_select/patches/patch-curses__helpers.c b/pkgtools/pkg_select/patches/patch-curses__helpers.c index df4b5a35459..535f8decf7e 100644 --- a/pkgtools/pkg_select/patches/patch-curses__helpers.c +++ b/pkgtools/pkg_select/patches/patch-curses__helpers.c @@ -1,10 +1,28 @@ -$NetBSD: patch-curses__helpers.c,v 1.2 2013/11/29 23:13:56 dholland Exp $ +$NetBSD: patch-curses__helpers.c,v 1.3 2017/12/29 11:59:13 plunky Exp $ +fix -Wset-but-unused Fix printf format strings. ---- curses_helpers.c.orig 2013-09-10 11:42:25.000000000 +0000 +--- curses_helpers.c.orig 2009-03-08 14:25:53.000000000 +0000 +++ curses_helpers.c -@@ -458,7 +458,7 @@ combo_entry(WINDOW *list_win, Etree *ite +@@ -393,7 +393,7 @@ static int + combo_entry(WINDOW *list_win, Etree *item, HL_datas *hl, + int d_index, int y, const char *path) { + +- int i, real_hl; ++ int i; + int sb_real, sb_y; + int entry_size, comment_size; + static int last_sb = -1; +@@ -416,7 +416,6 @@ combo_entry(WINDOW *list_win, Etree *ite + } + + /* highlight*/ +- real_hl = hl->hl_index + hl->top_line; + /* delta between hl and old */ + delta = hl->old_index - hl->hl_index; + +@@ -458,7 +457,7 @@ combo_entry(WINDOW *list_win, Etree *ite snprintf(buf, MAXLEN, "[ %-15s%c%c]", tmp_entry, tbi, status); entry_size = strlen(buf); wattron(list_win, A_BOLD); @@ -13,7 +31,7 @@ Fix printf format strings. wattroff(list_win, A_BOLD); } /* then comment | item list */ -@@ -653,11 +653,11 @@ progress_bar(const char **keylist, char +@@ -653,11 +652,11 @@ progress_bar(const char **keylist, char for (i = 0; i < pg; i++) { /* clear line */ line_padding(buf, ' ', w); @@ -27,7 +45,7 @@ Fix printf format strings. wattron(popup, A_REVERSE); mvwprintw(popup, 3, i + 2, " "); wattroff(popup, A_REVERSE); -@@ -698,7 +698,7 @@ cmd_spawn(int waitkey, const char **prog +@@ -698,7 +697,7 @@ cmd_spawn(int waitkey, const char **prog while (fgets(buf, MAXLEN, fp) != NULL) { /* shell output preferred instead of progress bars */ if (conf.shell_output) |