summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kuehne <thomas@kuehne.cn>2021-12-05 15:03:50 +0100
committerThomas Kuehne <thomas@kuehne.cn>2021-12-05 15:19:25 +0100
commit5120f1c37b3d39350e7caa0a0372ec0df3bba152 (patch)
tree3a660acdc82c70bfa7ab1de76659dd6345d81549
parent2928159e8111dea2cacc2992073961c9ad0ea57e (diff)
Fixes -Wformat warning in xrestop_display
xrestop.c: In function ‘xrestop_display’: xrestop.c:551:32: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘XID’ {aka ‘long unsigned int’} [-Wformat=] 551 | mvprintw(i+5, 0, "%.7x %4d %4d %4d %4d %4d %4d %7s %7s %7s %5s %s", | ~~~^
-rw-r--r--xrestop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrestop.c b/xrestop.c
index 893d71b..16b4887 100644
--- a/xrestop.c
+++ b/xrestop.c
@@ -548,7 +548,7 @@ xrestop_display(XResTopApp *app)
if (!app->want_batch_mode)
{
- mvprintw(i+5, 0, "%.7x %4d %4d %4d %4d %4d %4d %7s %7s %7s %5s %s",
+ mvprintw(i+5, 0, "%.7lx %4d %4d %4d %4d %4d %4d %7s %7s %7s %5s %s",
app->clients[i]->resource_base,
app->clients[i]->n_windows,