diff options
Diffstat (limited to 'usr.bin/xlint/lint1')
| -rw-r--r-- | usr.bin/xlint/lint1/ckbool.c | 6 | ||||
| -rw-r--r-- | usr.bin/xlint/lint1/err.c | 8 | ||||
| -rw-r--r-- | usr.bin/xlint/lint1/tree.c | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/xlint/lint1/ckbool.c b/usr.bin/xlint/lint1/ckbool.c index d3fe3f21fb5..1d6e197df89 100644 --- a/usr.bin/xlint/lint1/ckbool.c +++ b/usr.bin/xlint/lint1/ckbool.c @@ -1,4 +1,4 @@ -/* $NetBSD: ckbool.c,v 1.23 2023/07/02 18:14:44 rillig Exp $ */ +/* $NetBSD: ckbool.c,v 1.24 2023/07/09 10:42:07 rillig Exp $ */ /*- * Copyright (c) 2021 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: ckbool.c,v 1.23 2023/07/02 18:14:44 rillig Exp $"); +__RCSID("$NetBSD: ckbool.c,v 1.24 2023/07/09 10:42:07 rillig Exp $"); #endif #include <string.h> @@ -120,7 +120,7 @@ typeok_strict_bool_binary_compatible(op_t op, int arg, return true; if (op == FARG) { - /* argument #%d expects '%s', gets passed '%s' */ + /* argument %d expects '%s', gets passed '%s' */ error(334, arg, tspec_name(lt), tspec_name(rt)); } else if (op == RETURN) { /* function has return type '%s' but returns '%s' */ diff --git a/usr.bin/xlint/lint1/err.c b/usr.bin/xlint/lint1/err.c index 4a009cee293..93fa712ce39 100644 --- a/usr.bin/xlint/lint1/err.c +++ b/usr.bin/xlint/lint1/err.c @@ -1,4 +1,4 @@ -/* $NetBSD: err.c,v 1.205 2023/07/07 06:03:31 rillig Exp $ */ +/* $NetBSD: err.c,v 1.206 2023/07/09 10:42:07 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: err.c,v 1.205 2023/07/07 06:03:31 rillig Exp $"); +__RCSID("$NetBSD: err.c,v 1.206 2023/07/09 10:42:07 rillig Exp $"); #endif #include <limits.h> @@ -314,7 +314,7 @@ static const char *const msgs[] = { "unterminated comment", /* 256 */ "extra characters in lint comment", /* 257 */ "unterminated string constant", /* 258 */ - "argument #%d is converted from '%s' to '%s' due to prototype", /* 259 */ + "argument %d is converted from '%s' to '%s' due to prototype", /* 259 */ "previous declaration of '%s'", /* 260 */ "previous definition of '%s'", /* 261 */ "\\\" inside character constants undefined in traditional C", /* 262 */ @@ -389,7 +389,7 @@ static const char *const msgs[] = { "left operand of '%s' must be bool, not '%s'", /* 331 */ "right operand of '%s' must be bool, not '%s'", /* 332 */ "controlling expression must be bool, not '%s'", /* 333 */ - "argument #%d expects '%s', gets passed '%s'", /* 334 */ + "argument %d expects '%s', gets passed '%s'", /* 334 */ "operand of '%s' must not be bool", /* 335 */ "left operand of '%s' must not be bool", /* 336 */ "right operand of '%s' must not be bool", /* 337 */ diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c index d6109cdc165..728079cd033 100644 --- a/usr.bin/xlint/lint1/tree.c +++ b/usr.bin/xlint/lint1/tree.c @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.554 2023/07/08 16:13:00 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.555 2023/07/09 10:42:07 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: tree.c,v 1.554 2023/07/08 16:13:00 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.555 2023/07/09 10:42:07 rillig Exp $"); #endif #include <float.h> @@ -3380,7 +3380,7 @@ check_prototype_conversion(int arg, tspec_t nt, tspec_t ot, type_t *tp, ot = ptn->tn_type->t_tspec; if (should_warn_about_prototype_conversion(nt, ot, ptn)) { - /* argument #%d is converted from '%s' to '%s' ... */ + /* argument %d is converted from '%s' to '%s' ... */ warning(259, arg, type_name(tn->tn_type), type_name(tp)); } } |
