gbranden pushed a commit to branch master
in repository groff.
commit 8f5f58e51a297770827dfb6f5a6dfc4c788f3217
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 3 20:24:23 2026 -0500
src/roff/groff/pipeline.c: Fix cosmetic code nit.
(1) Unlike Unix kernels of old, groff does not consider C language
keywords like `if`, `while`, `switch`, and `return` to be functions.
(2) Drop unnecessary parentheses around simple expression.
---
src/roff/groff/pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/roff/groff/pipeline.c b/src/roff/groff/pipeline.c
index 3ebf5bb63..0872afaa8 100644
--- a/src/roff/groff/pipeline.c
+++ b/src/roff/groff/pipeline.c
@@ -129,7 +129,7 @@ char *sbasename(const char *path)
strncpy(base, p1, p2 - p1);
*(base + (p2 - p1)) = '\0';
- return(base);
+ return base;
}
/* Get the name of the system shell */
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit