Revision: 65858
http://sourceforge.net/p/brlcad/code/65858
Author: carlmoore
Date: 2015-08-07 22:17:59 +0000 (Fri, 07 Aug 2015)
Log Message:
-----------
cosmetic changes so the files look more alike
Modified Paths:
--------------
brlcad/trunk/src/util/bwstat.c
brlcad/trunk/src/util/pixstat.c
Modified: brlcad/trunk/src/util/bwstat.c
===================================================================
--- brlcad/trunk/src/util/bwstat.c 2015-08-07 21:27:45 UTC (rev 65857)
+++ brlcad/trunk/src/util/bwstat.c 2015-08-07 22:17:59 UTC (rev 65858)
@@ -89,7 +89,7 @@
argc--;
}
- /* look for optional input file */
+ /* check for optional input file */
if (argc > 1) {
if ((fp = fopen(argv[1], "r")) == 0) {
bu_exit(1, "bwstat: can't open \"%s\"\n", argv[1]);
Modified: brlcad/trunk/src/util/pixstat.c
===================================================================
--- brlcad/trunk/src/util/pixstat.c 2015-08-07 21:27:45 UTC (rev 65857)
+++ brlcad/trunk/src/util/pixstat.c 2015-08-07 22:17:59 UTC (rev 65858)
@@ -35,8 +35,8 @@
#include "common.h"
+#include <stdlib.h>
#include <string.h>
-#include <stdlib.h>
#include <math.h>
#include "bio.h"
@@ -80,7 +80,7 @@
{
int i, n, num;
double d;
- long num_pixels;
+ long num_pixels = 0L ;
unsigned char *bp;
FILE *fp;
@@ -107,9 +107,8 @@
}
/*
- * Build the histogram.
+ * Build the histogram. (num_pixels initialized to 0)
*/
- num_pixels = 0;
while ((n = fread(&buf[0], sizeof(*buf), IBUFSIZE, fp)) > 0) {
num = n/3;
num_pixels += num;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits