* [Patch 4/4] cldcli: suppress a warning
@ 2009-08-08 6:28 Pete Zaitcev
0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2009-08-08 6:28 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Project Hail List
We don't want to use printf("%s", mem), because mem may contain
something other than simple text.
Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
diff --git a/tools/cldcli.c b/tools/cldcli.c
index 674acd9..3c35263 100644
--- a/tools/cldcli.c
+++ b/tools/cldcli.c
@@ -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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-08 6:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-08 6:28 [Patch 4/4] cldcli: suppress a warning Pete Zaitcev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.