Revision: 55300
http://sourceforge.net/p/brlcad/code/55300
Author: carlmoore
Date: 2013-05-02 19:47:01 +0000 (Thu, 02 May 2013)
Log Message:
-----------
add 2 'else's, and create the 'usage' string
Modified Paths:
--------------
brlcad/trunk/src/sig/smod.c
Modified: brlcad/trunk/src/sig/smod.c
===================================================================
--- brlcad/trunk/src/sig/smod.c 2013-05-02 19:43:21 UTC (rev 55299)
+++ brlcad/trunk/src/sig/smod.c 2013-05-02 19:47:01 UTC (rev 55300)
@@ -54,6 +54,7 @@
unsigned char clip_h[BUFLEN]; /* map of values which clip high */
unsigned char clip_l[BUFLEN]; /* map of values which clip low */
+static const char usage[] = "Usage: smod [-a add | -s sub | -m mult | -d div |
-A | -e exp | -r root] [file.s]\n";
int
get_args(int argc, char *argv[])
@@ -180,7 +181,7 @@
progname = *argv;
if (!get_args(argc, argv) || isatty(fileno(stdin)) ||
isatty(fileno(stdout))) {
- bu_exit(1, "Usage: smod {-a add -s sub -m mult -d div -A(abs) -e exp -r
root} [file.s]\n");
+ bu_exit(1, "%s", usage);
}
mk_trans_tbl();
@@ -194,12 +195,12 @@
long mdx;
if (idx < 0)
idx = 0;
- if (idx > BUFLEN-1)
+ else if (idx > BUFLEN-1)
idx = BUFLEN-1;
mdx = iobuf[idx] + 32768;
if (mdx < 0)
mdx = 0;
- if (mdx > BUFLEN-1)
+ else if (mdx > BUFLEN-1)
mdx = BUFLEN-1;
iobuf[idx] = mapbuf[mdx];
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://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits