Revision: 42174
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42174&view=rev
Author:   brlcad
Date:     2011-01-12 20:06:03 +0000 (Wed, 12 Jan 2011)

Log Message:
-----------
test of conversion to BU_STR_EQUAL() instead of directly calling strcmp().

Modified Paths:
--------------
    brlcad/trunk/bench/pixcmp.c

Modified: brlcad/trunk/bench/pixcmp.c
===================================================================
--- brlcad/trunk/bench/pixcmp.c 2011-01-12 20:01:19 UTC (rev 42173)
+++ brlcad/trunk/bench/pixcmp.c 2011-01-12 20:06:03 UTC (rev 42174)
@@ -185,13 +185,13 @@
 
     /* printf("Skip from FILE1: %ld and from FILE2: %ld\n", f1_skip, f2_skip); 
*/
 
-    if (strcmp(argv[0], "-") == 0) {
+    if (BU_STR_EQUAL(argv[0], "-")) {
        f1 = stdin;
     } else if ((f1 = fopen(argv[0], "rb")) == NULL) {
        perror(argv[0]);
        exit(FILE_ERROR);
     }
-    if ((argc < 2) || (strcmp(argv[1], "-") == 0)) {
+    if ((argc < 2) || BU_STR_EQUAL(argv[1], "-")) {
        f2 = stdin;
     } else if ((f2 = fopen(argv[1], "rb")) == NULL) {
        perror(argv[1]);


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to