Revision: 76885
http://sourceforge.net/p/brlcad/code/76885
Author: brlcad
Date: 2020-08-22 06:06:04 +0000 (Sat, 22 Aug 2020)
Log Message:
-----------
revert c76872. bu_exit() is not the problem. bug masking is a straight up
antipattern.
Modified Paths:
--------------
brlcad/trunk/src/fb/fbstretch.c
brlcad/trunk/src/sig/dauto.c
Modified: brlcad/trunk/src/fb/fbstretch.c
===================================================================
--- brlcad/trunk/src/fb/fbstretch.c 2020-08-22 05:54:30 UTC (rev 76884)
+++ brlcad/trunk/src/fb/fbstretch.c 2020-08-22 06:06:04 UTC (rev 76885)
@@ -265,10 +265,8 @@
if (argc == 1 && isatty(fileno(stdin)) && isatty(fileno(stdout)))
errors = 1;
- if (errors) {
- bu_log("Usage: %s\n%s\n%s\n", USAGE1, USAGE2, USAGE3);
- return 1;
- }
+ if (errors)
+ bu_exit(1, "Usage: %s\n%s\n%s\n", USAGE1, USAGE2, USAGE3);
}
if (bu_optind < argc) {
Modified: brlcad/trunk/src/sig/dauto.c
===================================================================
--- brlcad/trunk/src/sig/dauto.c 2020-08-22 05:54:30 UTC (rev 76884)
+++ brlcad/trunk/src/sig/dauto.c 2020-08-22 06:06:04 UTC (rev 76885)
@@ -37,6 +37,7 @@
#include "bu/app.h"
#include "bu/exit.h"
#include "bu/malloc.h"
+#include "bu/exit.h"
int
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