From: Tomohiro Kusumi Date: Wed, 11 Apr 2018 16:40:13 +0000 (+0900) Subject: Invert calloc(3) argument order (`nmemb` comes first) X-Git-Tag: fuse-3.2.3~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1a4afa80292534e92ecb4b9f6665d1910d573ca3;p=qemu-gpiodev%2Flibfuse.git Invert calloc(3) argument order (`nmemb` comes first) No functional difference expected, but should still follow the standard. http://pubs.opengroup.org/onlinepubs/009695399/functions/calloc.html --- diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 7ebf807..4242c86 100644 --- 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);