Module Name: src Committed By: rillig Date: Sat Mar 27 11:08:00 UTC 2021
Modified Files: src/usr.bin/xlint/common: emit.c inittyp.c src/usr.bin/xlint/lint1: decl.c lex.c tree.c src/usr.bin/xlint/lint2: msg.c Log Message: lint: remove space between 'sizeof (' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/usr.bin/xlint/common/emit.c cvs rdiff -u -r1.21 -r1.22 src/usr.bin/xlint/common/inittyp.c cvs rdiff -u -r1.162 -r1.163 src/usr.bin/xlint/lint1/decl.c cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/lint1/lex.c cvs rdiff -u -r1.251 -r1.252 src/usr.bin/xlint/lint1/tree.c cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint2/msg.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/common/emit.c diff -u src/usr.bin/xlint/common/emit.c:1.10 src/usr.bin/xlint/common/emit.c:1.11 --- src/usr.bin/xlint/common/emit.c:1.10 Sat Jan 16 02:40:02 2021 +++ src/usr.bin/xlint/common/emit.c Sat Mar 27 11:08:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: emit.c,v 1.10 2021/01/16 02:40:02 rillig Exp $ */ +/* $NetBSD: emit.c,v 1.11 2021/03/27 11:08:00 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: emit.c,v 1.10 2021/01/16 02:40:02 rillig Exp $"); +__RCSID("$NetBSD: emit.c,v 1.11 2021/03/27 11:08:00 rillig Exp $"); #endif #include <ctype.h> @@ -206,7 +206,7 @@ void outint(int i) { - if ((size_t)(ob.o_end - ob.o_next) < 3 * sizeof (int)) + if ((size_t)(ob.o_end - ob.o_next) < 3 * sizeof(int)) outxbuf(); ob.o_next += sprintf(ob.o_next, "%d", i); } Index: src/usr.bin/xlint/common/inittyp.c diff -u src/usr.bin/xlint/common/inittyp.c:1.21 src/usr.bin/xlint/common/inittyp.c:1.22 --- src/usr.bin/xlint/common/inittyp.c:1.21 Sat Mar 20 18:59:00 2021 +++ src/usr.bin/xlint/common/inittyp.c Sat Mar 27 11:08:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: inittyp.c,v 1.21 2021/03/20 18:59:00 rillig Exp $ */ +/* $NetBSD: inittyp.c,v 1.22 2021/03/27 11:08:00 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: inittyp.c,v 1.21 2021/03/20 18:59:00 rillig Exp $"); +__RCSID("$NetBSD: inittyp.c,v 1.22 2021/03/27 11:08:00 rillig Exp $"); #endif #include <limits.h> @@ -139,7 +139,7 @@ inittyp(void) #undef typeinfo }; - for (i = 0; i < sizeof (ittab) / sizeof (ittab[0]); i++) + for (i = 0; i < sizeof(ittab) / sizeof(ittab[0]); i++) ttab[ittab[i].it_tspec] = ittab[i].it_ttab; if (!pflag) { for (i = 0; i < NTSPEC; i++) Index: src/usr.bin/xlint/lint1/decl.c diff -u src/usr.bin/xlint/lint1/decl.c:1.162 src/usr.bin/xlint/lint1/decl.c:1.163 --- src/usr.bin/xlint/lint1/decl.c:1.162 Fri Mar 26 20:51:34 2021 +++ src/usr.bin/xlint/lint1/decl.c Sat Mar 27 11:08:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: decl.c,v 1.162 2021/03/26 20:51:34 christos Exp $ */ +/* $NetBSD: decl.c,v 1.163 2021/03/27 11:08:00 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: decl.c,v 1.162 2021/03/26 20:51:34 christos Exp $"); +__RCSID("$NetBSD: decl.c,v 1.163 2021/03/27 11:08:00 rillig Exp $"); #endif #include <sys/param.h> @@ -148,7 +148,7 @@ duptyp(const type_t *tp) { type_t *ntp; - ntp = getblk(sizeof (type_t)); + ntp = getblk(sizeof(*ntp)); *ntp = *tp; return ntp; } Index: src/usr.bin/xlint/lint1/lex.c diff -u src/usr.bin/xlint/lint1/lex.c:1.17 src/usr.bin/xlint/lint1/lex.c:1.18 --- src/usr.bin/xlint/lint1/lex.c:1.17 Fri Mar 26 20:31:07 2021 +++ src/usr.bin/xlint/lint1/lex.c Sat Mar 27 11:08:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: lex.c,v 1.17 2021/03/26 20:31:07 rillig Exp $ */ +/* $NetBSD: lex.c,v 1.18 2021/03/27 11:08:00 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: lex.c,v 1.17 2021/03/26 20:31:07 rillig Exp $"); +__RCSID("$NetBSD: lex.c,v 1.18 2021/03/27 11:08:00 rillig Exp $"); #endif #include <ctype.h> @@ -841,7 +841,7 @@ lex_character_constant(void) error(253); } else { /* XXX: should rather be sizeof(TARG_INT) */ - if (n > sizeof (int) || (n > 1 && (pflag || hflag))) { + if (n > sizeof(int) || (n > 1 && (pflag || hflag))) { /* too many characters in character constant */ error(71); } else if (n > 1) { Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.251 src/usr.bin/xlint/lint1/tree.c:1.252 --- src/usr.bin/xlint/lint1/tree.c:1.251 Fri Mar 26 23:17:33 2021 +++ src/usr.bin/xlint/lint1/tree.c Sat Mar 27 11:08:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.251 2021/03/26 23:17:33 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.252 2021/03/27 11:08:00 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: tree.c,v 1.251 2021/03/26 23:17:33 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.252 2021/03/27 11:08:00 rillig Exp $"); #endif #include <float.h> @@ -3896,7 +3896,7 @@ display_expression(const tnode_t *tn, in (long)uq & 0xffffffffl); } else if (tn->tn_op == CON) { lint_assert(tn->tn_type->t_tspec == PTR); - (void)printf("0x%0*lx ", (int)(sizeof (void *) * CHAR_BIT / 4), + (void)printf("0x%0*lx ", (int)(sizeof(void *) * CHAR_BIT / 4), (u_long)tn->tn_val->v_quad); } else if (tn->tn_op == STRING) { if (tn->tn_string->st_tspec == CHAR) { Index: src/usr.bin/xlint/lint2/msg.c diff -u src/usr.bin/xlint/lint2/msg.c:1.14 src/usr.bin/xlint/lint2/msg.c:1.15 --- src/usr.bin/xlint/lint2/msg.c:1.14 Sat Jan 16 02:40:02 2021 +++ src/usr.bin/xlint/lint2/msg.c Sat Mar 27 11:08:00 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: msg.c,v 1.14 2021/01/16 02:40:02 rillig Exp $ */ +/* $NetBSD: msg.c,v 1.15 2021/03/27 11:08:00 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: msg.c,v 1.14 2021/01/16 02:40:02 rillig Exp $"); +__RCSID("$NetBSD: msg.c,v 1.15 2021/03/27 11:08:00 rillig Exp $"); #endif #include <stdarg.h> @@ -127,7 +127,7 @@ mkpos(pos_t *posp) qm = !Hflag && posp->p_src != posp->p_isrc; len = strlen(fn = lbasename(fnames[src])); - len += 3 * sizeof (u_short) + 4; + len += 3 * sizeof(u_short) + 4; if (len > blen) buf = xrealloc(buf, blen = len);