Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint lint: remove space between 'sizeof ('



details:   https://anonhg.NetBSD.org/src/rev/daee9969283c
branches:  trunk
changeset: 960703:daee9969283c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Mar 27 11:08:00 2021 +0000

description:
lint: remove space between 'sizeof ('

No functional change.

diffstat:

 usr.bin/xlint/common/emit.c    |  6 +++---
 usr.bin/xlint/common/inittyp.c |  6 +++---
 usr.bin/xlint/lint1/decl.c     |  6 +++---
 usr.bin/xlint/lint1/lex.c      |  6 +++---
 usr.bin/xlint/lint1/tree.c     |  6 +++---
 usr.bin/xlint/lint2/msg.c      |  6 +++---
 6 files changed, 18 insertions(+), 18 deletions(-)

diffs (162 lines):

diff -r 29da7ef55e8b -r daee9969283c usr.bin/xlint/common/emit.c
--- a/usr.bin/xlint/common/emit.c       Sat Mar 27 08:01:21 2021 +0000
+++ b/usr.bin/xlint/common/emit.c       Sat Mar 27 11:08:00 2021 +0000
@@ -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 @@
 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);
 }
diff -r 29da7ef55e8b -r daee9969283c usr.bin/xlint/common/inittyp.c
--- a/usr.bin/xlint/common/inittyp.c    Sat Mar 27 08:01:21 2021 +0000
+++ b/usr.bin/xlint/common/inittyp.c    Sat Mar 27 11:08:00 2021 +0000
@@ -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 @@
 #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++)
diff -r 29da7ef55e8b -r daee9969283c usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Sat Mar 27 08:01:21 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Sat Mar 27 11:08:00 2021 +0000
@@ -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 @@
 {
        type_t  *ntp;
 
-       ntp = getblk(sizeof (type_t));
+       ntp = getblk(sizeof(*ntp));
        *ntp = *tp;
        return ntp;
 }
diff -r 29da7ef55e8b -r daee9969283c usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Sat Mar 27 08:01:21 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Sat Mar 27 11:08:00 2021 +0000
@@ -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 @@
                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) {
diff -r 29da7ef55e8b -r daee9969283c usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Sat Mar 27 08:01:21 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sat Mar 27 11:08:00 2021 +0000
@@ -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 @@
                    (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) {
diff -r 29da7ef55e8b -r daee9969283c usr.bin/xlint/lint2/msg.c
--- a/usr.bin/xlint/lint2/msg.c Sat Mar 27 08:01:21 2021 +0000
+++ b/usr.bin/xlint/lint2/msg.c Sat Mar 27 11:08:00 2021 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index