From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Zaitcev Subject: [Patch 4/4] cldcli: suppress a warning Date: Sat, 8 Aug 2009 00:28:16 -0600 Message-ID: <20090808002816.245ec526@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" 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 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);