Skip to contentSkip to conversation

cldcli: suppress a warning

PATCH In review Pete Zaitcev 1 participant 1 message Aug 8, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 cldcli: suppress a warning

We don't want to use printf("%s", mem), because mem may contain something other than simple text.

tools/cldcli.c +1 -1
index 674acd9..3c35263 100644
@@ -712,7 +712,7 @@ static void cmd_cat(const char *arg)
 	read_from_thread(mem, len);
 
 	/* write file data to stdout */
-	fwrite(mem, len, 1, stdout);
+	(void) fwrite(mem, len, 1, stdout);
 	fprintf(stdout, "\n");
 
 	free(mem);