diff options
author | Thomas Kuehne <thomas@kuehne.cn> | 2021-12-05 15:03:50 +0100 |
---|---|---|
committer | Thomas Kuehne <thomas@kuehne.cn> | 2021-12-05 15:19:25 +0100 |
commit | 5120f1c37b3d39350e7caa0a0372ec0df3bba152 (patch) | |
tree | 3a660acdc82c70bfa7ab1de76659dd6345d81549 | |
parent | 2928159e8111dea2cacc2992073961c9ad0ea57e (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |