Revision: 56639
          http://sourceforge.net/p/brlcad/code/56639
Author:   brlcad
Date:     2013-08-06 19:16:59 +0000 (Tue, 06 Aug 2013)
Log Message:
-----------
reduce scope of input/output to static as a stop-gap.  desirable to 
minimize/eliminate globals.  also fix unreachable code condition.

Modified Paths:
--------------
    brlcad/trunk/src/libbn/tests/bn_poly_scale.c

Modified: brlcad/trunk/src/libbn/tests/bn_poly_scale.c
===================================================================
--- brlcad/trunk/src/libbn/tests/bn_poly_scale.c        2013-08-06 19:12:21 UTC 
(rev 56638)
+++ brlcad/trunk/src/libbn/tests/bn_poly_scale.c        2013-08-06 19:16:59 UTC 
(rev 56639)
@@ -33,10 +33,8 @@
 #include "magic.h"
 
 
-struct bn_poly bn_Zero_poly = { BN_POLY_MAGIC, 0, {0.0} };
-
 /* holds three polynomials to be used in test. */
-bn_poly_t input[3], output[3];
+static bn_poly_t input[3], output[3];
 
 
 /**
@@ -45,6 +43,8 @@
 void
 poly_init(void)
 {
+    struct bn_poly bn_Zero_poly = { BN_POLY_MAGIC, 0, {0.0} };
+
     /* stores 0 coefficients to polynomial for input and output. */
     output[0] = bn_Zero_poly;
     input[0] = bn_Zero_poly;
@@ -138,10 +138,9 @@
     if (ret == 0) {
        bu_log("\nFunction computes correctly\n");
        return EXIT_SUCCESS;
-    } else
-       return EXIT_FAILURE;
+    }
 
-    return 0;
+    return EXIT_FAILURE;
 }
 
 

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


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to