gbranden pushed a commit to branch master
in repository groff.
commit ca383c87036172864009b9ec744ebeb130b108f0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 31 21:58:46 2026 -0500
[grohtml]: Fix code style nit; use exit(3).
* src/devices/grohtml/post-html.cpp (main): Return using exit(3), not
`return`.
---
ChangeLog | 5 +++++
src/devices/grohtml/post-html.cpp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c20e90982..e5a114d8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-05-31 G. Branden Robinson <[email protected]>
+
+ * src/devices/grohtml/post-html.cpp: Fix code style nit.
+ (main): Return using exit(3), not `return`.
+
2026-05-31 G. Branden Robinson <[email protected]>
[grohtml]: Be more fastidious with heap-allocated memory.
diff --git a/src/devices/grohtml/post-html.cpp
b/src/devices/grohtml/post-html.cpp
index df04754ac..ec721f5c5 100644
--- a/src/devices/grohtml/post-html.cpp
+++ b/src/devices/grohtml/post-html.cpp
@@ -6001,7 +6001,7 @@ int main(int argc, char **argv)
for (int i = optind; i < argc; i++)
interpret_troff_output_file(argv[i]);
}
- return 0;
+ exit(EXIT_SUCCESS);
}
static void usage(FILE *stream)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit