Revision: 56982
http://sourceforge.net/p/brlcad/code/56982
Author: tbrowder2
Date: 2013-08-20 11:28:17 +0000 (Tue, 20 Aug 2013)
Log Message:
-----------
simplify: use Usage for no args
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:23:04 UTC (rev 56981)
+++ brlcad/trunk/src/util/dsp_add.c 2013-08-20 11:28:17 UTC (rev 56982)
@@ -78,7 +78,7 @@
char *strrchr(const char *, int);
/* get all the option flags from the command line */
- while ((c = bu_getopt(ac, av, options)) != -1)
+ while ((c = bu_getopt(ac, av, optstring)) != -1)
switch (c) {
default:
Usage("");
@@ -184,11 +184,7 @@
struct stat sb;
size_t ret;
- if (ac < 2) {
- (void)fprintf(stderr, "Usage: %s dsp_1 dsp_2 > dsp_3\n",
- av[0]);
- bu_exit (1, NULL);
- }
+ if (ac < 2) Usage("");
if (isatty(fileno(stdout))) Usage("Must redirect standard output\n");
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