projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aac8693
)
dnd: Use %zd in the format string for size_t types
author
Damien Lespiau
<damien.lespiau@intel.com>
Fri, 26 Oct 2012 00:15:44 +0000
(
01:15
+0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 29 Oct 2012 20:28:19 +0000
(16:28 -0400)
len i size_t, so is the result of the sizeof operator.
clients/dnd.c
patch
|
blob
|
history
diff --git
a/clients/dnd.c
b/clients/dnd.c
index
4c070ff
..
4aad070
100644
(file)
--- a/
clients/dnd.c
+++ b/
clients/dnd.c
@@
-517,7
+517,7
@@
dnd_receive_func(void *data, size_t len, int32_t x, int32_t y, void *user_data)
if (len == 0) {
return;
} else if (len != sizeof *message) {
- fprintf(stderr, "odd message length %
ld, expected %ld
\n",
+ fprintf(stderr, "odd message length %
zu, expected %zu
\n",
len, sizeof *message);
return;
}