summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/tools-xentop-vwprintw.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/xen/files/tools-xentop-vwprintw.patch')
-rw-r--r--recipes-extended/xen/files/tools-xentop-vwprintw.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/tools-xentop-vwprintw.patch b/recipes-extended/xen/files/tools-xentop-vwprintw.patch
new file mode 100644
index 00000000..5d5d0116
--- /dev/null
+++ b/recipes-extended/xen/files/tools-xentop-vwprintw.patch
@@ -0,0 +1,25 @@
1tools/xentop : fix vwprintw -Werror=deprecated-declarations warning
2
3gcc-8.1 complains:
4
5| xentop.c: In function 'print':
6| xentop.c:304:4: error: 'vwprintw' is deprecated [-Werror=deprecated-declarations]
7| vwprintw(stdscr, (curses_str_t)fmt, args);
8| ^~~~~~~~
9
10vw_printw is the non-deprecated alternative.
11
12Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
13diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c
14index 2fd2b67..c465810 100644
15--- a/tools/xenstat/xentop/xentop.c
16+++ b/tools/xenstat/xentop/xentop.c
17@@ -301,7 +301,7 @@ static void print(const char *fmt, ...)
18 if (!batch) {
19 if((current_row() < lines()-1)) {
20 va_start(args, fmt);
21- vwprintw(stdscr, (curses_str_t)fmt, args);
22+ vw_printw(stdscr, (curses_str_t)fmt, args);
23 va_end(args);
24 }
25 } else {