From: Andreas Schneider Date: Fri, 1 Oct 2021 08:46:09 +0000 (+0200) Subject: s3:utils: Fix format error X-Git-Tag: ldb-2.5.0~535 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3081cebfb65181cd291702cb6a2e727dc999b2;p=thirdparty%2Fsamba.git s3:utils: Fix format error regedit_hexedit.c:166:39: error: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} 166 | wprintw(buf->win, "%08X ", off); | ~~~^ ~~~ | | | | | size_t {aka long unsigned int} | unsigned int | %08lX Signed-off-by: Andreas Schneider Reviewed-by: Uri Simchoni --- diff --git a/source3/utils/regedit_hexedit.c b/source3/utils/regedit_hexedit.c index 383736ae2bc..413e563f653 100644 --- a/source3/utils/regedit_hexedit.c +++ b/source3/utils/regedit_hexedit.c @@ -163,7 +163,7 @@ void hexedit_refresh(struct hexedit *buf) size_t i, endline; wmove(buf->win, lineno, 0); - wprintw(buf->win, "%08X ", off); + wprintw(buf->win, "%08zX ", off); endline = BYTES_PER_LINE;