Revision: 45578
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45578&view=rev
Author:   brlcad
Date:     2011-07-23 14:05:33 +0000 (Sat, 23 Jul 2011)

Log Message:
-----------
newer gcc 4.6 is smarter, have to actually use the return value.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/htester.c

Modified: brlcad/trunk/src/libbu/htester.c
===================================================================
--- brlcad/trunk/src/libbu/htester.c    2011-07-23 02:32:51 UTC (rev 45577)
+++ brlcad/trunk/src/libbu/htester.c    2011-07-23 14:05:33 UTC (rev 45578)
@@ -96,6 +96,8 @@
        /* Write out */
        htond((unsigned char *)buf, (unsigned char *)orig, NUM);
        ret = fwrite(buf, 8, NUM, stdout);
+       if (ret != 8)
+           perror("fwrite");
        exit(0);
     }
 
@@ -113,6 +115,8 @@
            break;
     }
     ret = fread(buf, 8, NUM, stdin);
+    if (ret != 8)
+       perror("fwrite");
 
 /* ntohd((char *)after, buf, NUM);     *//* bulk conversion */
     for (i=0; i<NUM; i++) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to