Revision: 56980
http://sourceforge.net/p/brlcad/code/56980
Author: tbrowder2
Date: 2013-08-20 11:09:44 +0000 (Tue, 20 Aug 2013)
Log Message:
-----------
ws, style
Modified Paths:
--------------
brlcad/trunk/src/util/dsp_add.c
Modified: brlcad/trunk/src/util/dsp_add.c
===================================================================
--- brlcad/trunk/src/util/dsp_add.c 2013-08-20 11:07:43 UTC (rev 56979)
+++ brlcad/trunk/src/util/dsp_add.c 2013-08-20 11:09:44 UTC (rev 56980)
@@ -77,13 +77,8 @@
int c;
char *strrchr(const char *, int);
- if (!(progname = strrchr(*av, '/')))
- progname = *av;
- else
- ++progname;
-
/* get all the option flags from the command line */
- while ((c=bu_getopt(ac, av, options)) != -1)
+ while ((c = bu_getopt(ac, av, options)) != -1)
switch (c) {
default:
usage("");
@@ -123,7 +118,7 @@
e = &buf1[count];
/* add everything, keeping track of the min/max values found */
- for (d=dbuf, p=buf1, q=buf2; p < e; p++, q++, d++) {
+ for (d = dbuf, p = buf1, q = buf2; p < e; p++, q++, d++) {
*d = *p + *q;
if (*d > max) max = *d;
if (*d < min) min = *d;
@@ -135,7 +130,7 @@
bu_log("min: %g scale: %g\n", min - k, k);
- for (d=dbuf, p=buf1, q=buf2; p < e; p++, q++, d++)
+ for (d = dbuf, p = buf1, q = buf2; p < e; p++, q++, d++)
*p = (unsigned short) ((*d - min) * k) + 1;
bu_free(dbuf, "buffer of double");
@@ -157,7 +152,7 @@
unsigned long i;
unsigned short s;
- for (i=0; i < count; i++) {
+ for (i = 0; i < count; i++) {
int_value = buf1[i] + buf2[i];
s = (unsigned short)int_value;
@@ -210,7 +205,7 @@
return -1;
}
- if(fstat(fileno(in1), &sb)) {
+ if (fstat(fileno(in1), &sb)) {
perror(av[next_arg]);
fclose(in1);
return -1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits