Module Name: src
Committed By: rillig
Date: Tue Feb 21 19:32:55 UTC 2023
Modified Files:
src/usr.bin/xlint/lint2: main2.c
Log Message:
lint: return instead of calling exit from main
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/xlint/lint2/main2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint2/main2.c
diff -u src/usr.bin/xlint/lint2/main2.c:1.26 src/usr.bin/xlint/lint2/main2.c:1.27
--- src/usr.bin/xlint/lint2/main2.c:1.26 Sat Jan 14 08:48:18 2023
+++ src/usr.bin/xlint/lint2/main2.c Tue Feb 21 19:32:55 2023
@@ -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 @@ main(int argc, char *argv[])
/* perform all tests */
symtab_forall_sorted(check_name_non_const);
- exit(0);
- /* NOTREACHED */
+ return 0;
}
static void