gbranden pushed a commit to branch master
in repository groff.

commit 126ad1fe427783a932533a152022e2cfc11f78fa
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jun 11 09:29:50 2026 -0500

    src/libs/libgroff/quotearg.c: Slightly refactor.
    
    Favor C standard library symbol `EXIT_FAILURE` over integer literal "1".
    
    Continues the long process of fixing Savannah #66672.
    
    Also discard trailing whitespace from source lines.
---
 ChangeLog                    | 7 +++++++
 src/libs/libgroff/quotearg.c | 8 ++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 97c1e4075..323911be6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-06-11  G. Branden Robinson <[email protected]>
+
+       * src/libs/libgroff/quotearg.c: Slightly refactor.  Favor C
+       standard library symbol `EXIT_FAILURE` over integer literal "1".
+
+       Continues the long process of fixing Savannah #66672.
+
 2026-06-11  G. Branden Robinson <[email protected]>
 
        * src/libs/libgroff/quotearg.c: Undefine file-local preprocessor
diff --git a/src/libs/libgroff/quotearg.c b/src/libs/libgroff/quotearg.c
index 779c995e3..b3c344938 100644
--- a/src/libs/libgroff/quotearg.c
+++ b/src/libs/libgroff/quotearg.c
@@ -82,7 +82,7 @@ needs_quoting(const char *string)
 
   return false;
 }
-      
+
 char *
 quote_arg(char *string)
 {
@@ -106,7 +106,7 @@ quote_arg(char *string)
        */
 
       REPORT_ERROR(QUOTE_ARG_MALLOC_ERROR);
-      exit(1);
+      exit(EXIT_FAILURE);
     }
 
     /* Ok to proceed:
@@ -121,7 +121,7 @@ quote_arg(char *string)
         * We will copy them out later, when we know if the count
         * needs to be adjusted, to escape an embedded quote.
         */
-       
+
        ++backslashes;
       }
       else if (*p == '"') {
@@ -175,7 +175,7 @@ quote_arg(char *string)
       /* but bail out gracefully, on error */
 
       REPORT_ERROR(QUOTE_ARG_REALLOC_ERROR);
-      exit(1);
+      exit(EXIT_FAILURE);
     }
   }
 

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to