From: Hans van Kranenburg Date: Sat, 28 Jul 2018 18:51:54 +0000 (+0200) Subject: debian/patches: Fix 'vwprintw' is deprecated X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~85 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=69ec2bb691ce13754442c5db572ae0c7256cb046;p=xen.git debian/patches: Fix 'vwprintw' is deprecated From the xen-devel mailing list, not committed yet: https://lists.xenproject.org/archives/html/xen-devel/2018-07/msg01718.html --- diff --git a/debian/patches/misc/tools-xentop-replace-use-of-deprecated-vwprintw.patch b/debian/patches/misc/tools-xentop-replace-use-of-deprecated-vwprintw.patch new file mode 100644 index 0000000000..367548e946 --- /dev/null +++ b/debian/patches/misc/tools-xentop-replace-use-of-deprecated-vwprintw.patch @@ -0,0 +1,35 @@ +From 754457cf86fd952cab83534f0a2db14eddaecca2 Mon Sep 17 00:00:00 2001 +From: Christopher Clark +Date: Wed, 18 Jul 2018 15:22:17 -0700 +Subject: [PATCH] tools/xentop : replace use of deprecated vwprintw + +gcc-8.1 complains: + +| xentop.c: In function 'print': +| xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations] +| vwprintw(stdscr, (curses_str_t)fmt, args); +| ^~~~~~~~ + +vw_printw (note the underscore) is a non-deprecated alternative. + +Signed-off-by: Christopher Clark +--- + tools/xenstat/xentop/xentop.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c +index 2fd2b6742e..c46581062b 100644 +--- a/tools/xenstat/xentop/xentop.c ++++ b/tools/xenstat/xentop/xentop.c +@@ -301,7 +301,7 @@ static void print(const char *fmt, ...) + if (!batch) { + if((current_row() < lines()-1)) { + va_start(args, fmt); +- vwprintw(stdscr, (curses_str_t)fmt, args); ++ vw_printw(stdscr, (curses_str_t)fmt, args); + va_end(args); + } + } else { +-- +2.18.0 + diff --git a/debian/patches/series b/debian/patches/series index 0148301f61..0ee281b073 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -35,3 +35,5 @@ misc/toolstestsx86_emulator-pass--no-pie--fno.patch xenstore/tools-xenstore-compatibility.diff xenstore/tools-fake-xs-restrict.patch + +misc/tools-xentop-replace-use-of-deprecated-vwprintw.patch