projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e654955
)
Invert calloc(3) argument order (`nmemb` comes first)
author
Tomohiro Kusumi
<kusumi.tomohiro@gmail.com>
Wed, 11 Apr 2018 16:40:13 +0000
(
01:40
+0900)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Fri, 13 Apr 2018 17:14:46 +0000
(10:14 -0700)
No functional difference expected, but should still follow the standard.
http://pubs.opengroup.org/onlinepubs/
009695399
/functions/calloc.html
example/passthrough_ll.c
patch
|
blob
|
history
diff --git
a/example/passthrough_ll.c
b/example/passthrough_ll.c
index 7ebf80714d881c6c9bf93237e7032759e26fd62e..4242c86cffad7b0c6eb01b19195e78ca32a505fd 100644
(file)
--- a/
example/passthrough_ll.c
+++ b/
example/passthrough_ll.c
@@
-327,7
+327,7
@@
static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size,
(void) ino;
- buf = calloc(
size, 1
);
+ buf = calloc(
1, size
);
if (!buf)
return (void) fuse_reply_err(req, ENOMEM);