summaryrefslogtreecommitdiffstats
path: root/usr.bin/xlint/lint1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-07 16:53:47 +0000
committerru <ru@FreeBSD.org>2002-04-07 16:53:47 +0000
commit49f7c324412b334ba9c9f8f70f83ddaf7bebb25b (patch)
tree6bf74fc08d163064fd2d0b3950677bed715f06c7 /usr.bin/xlint/lint1
parent284fd59fc6cf68783c5acaa19d4c2a3804b35eed (diff)
downloadFreeBSD-src-49f7c324412b334ba9c9f8f70f83ddaf7bebb25b.zip
FreeBSD-src-49f7c324412b334ba9c9f8f70f83ddaf7bebb25b.tar.gz
FreeBSD prior to 4.4-RELEASE and older versions of 5.0-CURRENT do
not have setprogname(3) and getprogname(3), and we need to build lint(1) as a cross-tool to bootstrap. Versions from lib/libc/gen can't be compiled either. PR: bin/36747
Diffstat (limited to 'usr.bin/xlint/lint1')
-rw-r--r--usr.bin/xlint/lint1/main1.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/xlint/lint1/main1.c b/usr.bin/xlint/lint1/main1.c
index f04d817..edcc0ab 100644
--- a/usr.bin/xlint/lint1/main1.c
+++ b/usr.bin/xlint/lint1/main1.c
@@ -35,6 +35,7 @@
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: main1.c,v 1.11 2002/01/29 02:43:38 tv Exp $");
#endif
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <stdio.h>
@@ -123,8 +124,6 @@ main(int argc, char *argv[])
int c;
char *ptr;
- setprogname(argv[0]);
-
ERR_ZERO(&msgset);
while ((c = getopt(argc, argv, "abcdeghmprstuvwyzFX:")) != -1) {
switch (c) {
@@ -209,8 +208,7 @@ static void
usage(void)
{
(void)fprintf(stderr,
- "Usage: %s [-abcdeghmprstuvwyzF] [-X <id>[,<id>]... src dest\n",
- getprogname());
+ "Usage: lint1 [-abcdeghmprstuvwyzF] [-X <id>[,<id>]... src dest\n");
exit(1);
}
OpenPOWER on IntegriCloud