From: Jim Meyering Date: Mon, 9 Nov 2009 14:06:36 +0000 (+0100) Subject: avoid "syntax-check" failure: hide cast of argument to free X-Git-Tag: 1.0.78~14 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b9de2dc61162bf7cb89560319aab5e96b920e8e0;p=libguestfs.git avoid "syntax-check" failure: hide cast of argument to free * fuse/guestmount.c (fg_readlink): Perform cast in a separate statement to hide it from "make syntax-check". --- diff --git a/fuse/guestmount.c b/fuse/guestmount.c index c7220c0..d45c18b 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -360,8 +360,10 @@ fg_readlink (const char *path, char *buf, size_t size) memcpy (buf, r, len); buf[len] = '\0'; - if (free_it) - free ((char *) r); + if (free_it) { + char *tmp = (char *) r; + free (tmp); + } return 0; }