Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint2 lint: return instead of calling exit fro...



details:   https://anonhg.NetBSD.org/src/rev/e06afe714bfe
branches:  trunk
changeset: 373609:e06afe714bfe
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Feb 21 19:32:55 2023 +0000

description:
lint: return instead of calling exit from main

No functional change.

diffstat:

 usr.bin/xlint/lint2/main2.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r f00902759ba3 -r e06afe714bfe usr.bin/xlint/lint2/main2.c
--- a/usr.bin/xlint/lint2/main2.c       Tue Feb 21 19:30:51 2023 +0000
+++ b/usr.bin/xlint/lint2/main2.c       Tue Feb 21 19:32:55 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main2.c,v 1.26 2023/01/14 08:48:18 rillig Exp $        */
+/*     $NetBSD: main2.c,v 1.27 2023/02/21 19:32:55 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: main2.c,v 1.26 2023/01/14 08:48:18 rillig Exp $");
+__RCSID("$NetBSD: main2.c,v 1.27 2023/02/21 19:32:55 rillig Exp $");
 #endif
 
 #include <stdio.h>
@@ -175,8 +175,7 @@
        /* perform all tests */
        symtab_forall_sorted(check_name_non_const);
 
-       exit(0);
-       /* NOTREACHED */
+       return 0;
 }
 
 static void



Home | Main Index | Thread Index | Old Index