Revision: 45565
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45565&view=rev
Author:   brlcad
Date:     2011-07-21 15:06:56 +0000 (Thu, 21 Jul 2011)

Log Message:
-----------
strlen() returns and write() takes a size_t, so keep the higher precision as 
far as we can even through write() requires the stupid return type

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

Modified: brlcad/trunk/src/libbu/bomb.c
===================================================================
--- brlcad/trunk/src/libbu/bomb.c       2011-07-21 13:56:06 UTC (rev 45564)
+++ brlcad/trunk/src/libbu/bomb.c       2011-07-21 15:06:56 UTC (rev 45565)
@@ -108,11 +108,12 @@
        fd = open("/dev/tty", 1);
        if (LIKELY(fd > 0)) {
            if (str && (strlen(str) > 0)) {
-               ssize_t len, ret;
+               size_t len;
+               ssize_t ret;
 
                len = strlen(str);
                ret = write(fd, str, len);
-               if (ret != len)
+               if (ret != (ssize_t)len)
                    perror("write failed");
 
                ret = write(fd, "\n", 1);


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

------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to