diff options
| author | rillig <rillig@NetBSD.org> | 2023-07-01 09:21:31 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2023-07-01 09:21:31 +0000 |
| commit | 648dcd2f97b73b0c48bf8f2b169a063a46b01c6f (patch) | |
| tree | 7abbfc5ff88612c431a04ed7d06090e82d919a15 /usr.bin | |
| parent | 8d9b395b7b8c2aa17b26c54a76a76eb0093ee374 (diff) | |
lint: clean up typos
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/xlint/lint1/debug.c | 6 | ||||
| -rw-r--r-- | usr.bin/xlint/lint1/tree.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/xlint/lint1/debug.c b/usr.bin/xlint/lint1/debug.c index 1a8c2a62975..0d2d623f7d6 100644 --- a/usr.bin/xlint/lint1/debug.c +++ b/usr.bin/xlint/lint1/debug.c @@ -1,4 +1,4 @@ -/* $NetBSD: debug.c,v 1.40 2023/06/30 21:39:54 rillig Exp $ */ +/* $NetBSD: debug.c,v 1.41 2023/07/01 09:21:31 rillig Exp $ */ /*- * Copyright (c) 2021 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: debug.c,v 1.40 2023/06/30 21:39:54 rillig Exp $"); +__RCSID("$NetBSD: debug.c,v 1.41 2023/07/01 09:21:31 rillig Exp $"); #endif #include <stdlib.h> @@ -440,7 +440,7 @@ debug_dinfo(const decl_level *dl) arg != NULL; arg = arg->s_next) debug_sym(" arg(", arg, ")"); if (dl->d_func_def_pos.p_file != NULL) - debug_printf(" func_def_pos=%s:%dl:%dl", + debug_printf(" func_def_pos=%s:%d:%d", dl->d_func_def_pos.p_file, dl->d_func_def_pos.p_line, dl->d_func_def_pos.p_uniq); for (const sym_t *sym = dl->d_func_proto_syms; diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c index cd3dbef3c39..e5f2ff55dd7 100644 --- a/usr.bin/xlint/lint1/tree.c +++ b/usr.bin/xlint/lint1/tree.c @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.539 2023/07/01 06:09:24 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.540 2023/07/01 09:21:31 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.539 2023/07/01 06:09:24 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.540 2023/07/01 09:21:31 rillig Exp $"); #endif #include <float.h> @@ -1066,8 +1066,8 @@ check_enum_array_index(const tnode_t *ln, const tnode_t *rn) return; const type_t *rtp = rn->tn_left->tn_type; - const struct sym *ec = rtp->t_enum->en_first_enumerator; - const struct sym *max_ec = ec; + const sym_t *ec = rtp->t_enum->en_first_enumerator; + const sym_t *max_ec = ec; lint_assert(ec != NULL); for (ec = ec->s_next; ec != NULL; ec = ec->s_next) if (ec->u.s_enum_constant > max_ec->u.s_enum_constant) |
