diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-04 13:43:02 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-04 13:43:02 -0800 |
commit | 50c931740b424e959b765aaf719278f5f025b329 (patch) | |
tree | 502ed7d62236cd80498b80ad6140b892be73abcd | |
parent | 1f2e533010513cc99435e8781226abec5cc53f6f (diff) |
atoms: Fix type mismatch in xcb_atom_name_unique()
Clears clang warnings of:
atoms.c:84:36: warning: format specifies type 'unsigned long' but
the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat]
return makename("%s_U%lu", base, id);
~~~ ^~
%u
atoms.c:86:27: warning: format specifies type 'unsigned long' but
the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat]
return makename("U%lu", id);
~~~ ^~
%u
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/atoms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atoms.c b/src/atoms.c index 559579f..fe7fe94 100644 --- a/src/atoms.c +++ b/src/atoms.c @@ -81,7 +81,7 @@ char *xcb_atom_name_by_resource(const char *base, uint32_t resource) char *xcb_atom_name_unique(const char *base, uint32_t id) { if(base) - return makename("%s_U%lu", base, id); + return makename("%s_U%u", base, id); else - return makename("U%lu", id); + return makename("U%u", id); } |