Source-Changes-HG archive

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

[src/trunk]: src White space nit- don't put a space before/after increment/de...



details:   https://anonhg.NetBSD.org/src/rev/2ca63cb80bf5
branches:  trunk
changeset: 573818:2ca63cb80bf5
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Feb 11 06:21:21 2005 +0000

description:
White space nit- don't put a space before/after increment/decrement
operators.

diffstat:

 bin/ksh/emacs.c                            |   6 +++---
 bin/ksh/misc.c                             |  10 +++++-----
 lib/libc/citrus/modules/citrus_iconv_std.c |   6 +++---
 lib/libc/rpc/auth_unix.c                   |   6 +++---
 lib/libpcap/inet.c                         |   6 +++---
 regress/lib/libc/locale/ctype2/mbrtowc.c   |   4 ++--
 sbin/fsck_ext2fs/utilities.c               |   6 +++---
 sys/arch/arm/iomd/console/vidcrender.c     |   8 ++++----
 sys/arch/arm/iomd/vidc20config.c           |   8 ++++----
 sys/arch/atari/dev/ser.c                   |  12 ++++++------
 sys/arch/atari/stand/ahdilabel/check.c     |   6 +++---
 sys/arch/shark/shark/profile.c             |   6 +++---
 sys/arch/shark/shark/scr.c                 |   8 ++++----
 sys/arch/sparc64/sparc64/ofw_machdep.c     |   6 +++---
 sys/dev/microcode/siop/ncr53cxxx.c         |   8 ++++----
 sys/dev/pci/if_devar.h                     |   4 ++--
 sys/dev/pci/pciconf.c                      |   6 +++---
 sys/dev/ppbus/ppbus_base.c                 |   8 ++++----
 sys/netiso/tp.trans                        |  10 +++++-----
 sys/netiso/tp_param.h                      |   4 ++--
 sys/netiso/xebec/procs.c                   |  10 +++++-----
 sys/netiso/xebec/xebec.bnf                 |   4 ++--
 sys/netiso/xebec/xebec.c                   |   6 +++---
 sys/netns/spp_usrreq.c                     |   6 +++---
 usr.bin/ftp/cmds.c                         |   6 +++---
 usr.bin/menuc/avl.c                        |   8 ++++----
 usr.bin/tn3270/ctlr/options.c              |   6 +++---
 27 files changed, 92 insertions(+), 92 deletions(-)

diffs (truncated from 793 to 300 lines):

diff -r 545d001a23fa -r 2ca63cb80bf5 bin/ksh/emacs.c
--- a/bin/ksh/emacs.c   Fri Feb 11 02:12:03 2005 +0000
+++ b/bin/ksh/emacs.c   Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emacs.c,v 1.26 2004/10/28 20:15:37 dsl Exp $   */
+/*     $NetBSD: emacs.c,v 1.27 2005/02/11 06:21:21 simonb Exp $        */
 
 /*
  *  Emacs-like command line editing and history
@@ -10,7 +10,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: emacs.c,v 1.26 2004/10/28 20:15:37 dsl Exp $");
+__RCSID("$NetBSD: emacs.c,v 1.27 2005/02/11 06:21:21 simonb Exp $");
 #endif
 
 
@@ -1259,7 +1259,7 @@
                killtp = KILLSIZE;
        else
                killtp = killsp;
-       killtp --;
+       killtp--;
        if (killstack[killtp] == 0)  {
                x_e_puts("\nnothing to yank");
                x_redraw(-1);
diff -r 545d001a23fa -r 2ca63cb80bf5 bin/ksh/misc.c
--- a/bin/ksh/misc.c    Fri Feb 11 02:12:03 2005 +0000
+++ b/bin/ksh/misc.c    Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.9 2004/07/07 19:20:09 mycroft Exp $ */
+/*     $NetBSD: misc.c,v 1.10 2005/02/11 06:21:21 simonb Exp $ */
 
 /*
  * Miscellaneous functions
@@ -6,7 +6,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: misc.c,v 1.9 2004/07/07 19:20:09 mycroft Exp $");
+__RCSID("$NetBSD: misc.c,v 1.10 2005/02/11 06:21:21 simonb Exp $");
 #endif
 
 
@@ -872,7 +872,7 @@
        for (;;) {
                if (i < lptr) {
                        if ((c = (*f)(*i, *lptr)) == 0) {
-                               lptr --;
+                               lptr--;
                                swap2(i, lptr);
                                continue;
                        }
@@ -885,13 +885,13 @@
          begin:
                if (j > hptr) {
                        if ((c = (*f)(*hptr, *j)) == 0) {
-                               hptr ++;
+                               hptr++;
                                swap2(hptr, j);
                                goto begin;
                        }
                        if (c > 0) {
                                if (i == lptr) {
-                                       hptr ++;
+                                       hptr++;
                                        swap3(i, hptr, j);
                                        i = lptr += 1;
                                        goto begin;
diff -r 545d001a23fa -r 2ca63cb80bf5 lib/libc/citrus/modules/citrus_iconv_std.c
--- a/lib/libc/citrus/modules/citrus_iconv_std.c        Fri Feb 11 02:12:03 2005 +0000
+++ b/lib/libc/citrus/modules/citrus_iconv_std.c        Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_iconv_std.c,v 1.9 2004/12/21 11:25:43 yamt Exp $        */
+/*     $NetBSD: citrus_iconv_std.c,v 1.10 2005/02/11 06:21:21 simonb Exp $     */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_iconv_std.c,v 1.9 2004/12/21 11:25:43 yamt Exp $");
+__RCSID("$NetBSD: citrus_iconv_std.c,v 1.10 2005/02/11 06:21:21 simonb Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -515,7 +515,7 @@
                ret = do_conv(is, sc, &csid, &idx);
                if (ret) {
                        if (ret == E_NO_CORRESPONDING_CHAR) {
-                               inval ++;
+                               inval++;
                                szrout = 0;
                                if ((flags&_CITRUS_ICONV_F_HIDE_INVALID)==0 &&
                                    is->is_use_invalid) {
diff -r 545d001a23fa -r 2ca63cb80bf5 lib/libc/rpc/auth_unix.c
--- a/lib/libc/rpc/auth_unix.c  Fri Feb 11 02:12:03 2005 +0000
+++ b/lib/libc/rpc/auth_unix.c  Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auth_unix.c,v 1.19 2003/01/18 11:29:03 thorpej Exp $   */
+/*     $NetBSD: auth_unix.c,v 1.20 2005/02/11 06:21:21 simonb Exp $    */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
 static char *sccsid = "@(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";
 static char *sccsid = "@(#)auth_unix.c 2.2 88/08/01 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: auth_unix.c,v 1.19 2003/01/18 11:29:03 thorpej Exp $");
+__RCSID("$NetBSD: auth_unix.c,v 1.20 2005/02/11 06:21:21 simonb Exp $");
 #endif
 #endif
 
@@ -286,7 +286,7 @@
                /* there is no hope.  Punt */
                return (FALSE);
        }
-       au->au_shfaults ++;
+       au->au_shfaults++;
 
        /* first deserialize the creds back into a struct authunix_parms */
        aup.aup_machname = NULL;
diff -r 545d001a23fa -r 2ca63cb80bf5 lib/libpcap/inet.c
--- a/lib/libpcap/inet.c        Fri Feb 11 02:12:03 2005 +0000
+++ b/lib/libpcap/inet.c        Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet.c,v 1.10 2004/09/27 23:02:53 dyoung Exp $ */
+/*     $NetBSD: inet.c,v 1.11 2005/02/11 06:21:21 simonb Exp $ */
 
 /* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
 /*
@@ -40,7 +40,7 @@
 static const char rcsid[] =
     "@(#) Header: /tcpdump/master/libpcap/inet.c,v 1.58.2.1 2003/11/15 23:26:41 guy Exp  (LBL)";
 #else
-__RCSID("$NetBSD: inet.c,v 1.10 2004/09/27 23:02:53 dyoung Exp $");
+__RCSID("$NetBSD: inet.c,v 1.11 2005/02/11 06:21:21 simonb Exp $");
 #endif
 #endif
 
@@ -636,7 +636,7 @@
                {
                        tAstr += strlen(tAstr) + 1;
                        tUstr += wcslen(tUstr) + 1;
-                       NAdapts ++;
+                       NAdapts++;
                }
 
                tAstr++;
diff -r 545d001a23fa -r 2ca63cb80bf5 regress/lib/libc/locale/ctype2/mbrtowc.c
--- a/regress/lib/libc/locale/ctype2/mbrtowc.c  Fri Feb 11 02:12:03 2005 +0000
+++ b/regress/lib/libc/locale/ctype2/mbrtowc.c  Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbrtowc.c,v 1.4 2004/06/21 21:20:05 itojun Exp $       */
+/*     $NetBSD: mbrtowc.c,v 1.5 2005/02/11 06:21:21 simonb Exp $       */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -99,7 +99,7 @@
 
                        printf("(%x) ", (u_int)*dst);
                        src += rv;
-                       dst ++;
+                       dst++;
                }
                printf("\n");
        }
diff -r 545d001a23fa -r 2ca63cb80bf5 sbin/fsck_ext2fs/utilities.c
--- a/sbin/fsck_ext2fs/utilities.c      Fri Feb 11 02:12:03 2005 +0000
+++ b/sbin/fsck_ext2fs/utilities.c      Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: utilities.c,v 1.12 2005/01/19 19:31:28 xtraeme Exp $   */
+/*     $NetBSD: utilities.c,v 1.13 2005/02/11 06:21:21 simonb Exp $    */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -63,7 +63,7 @@
 #if 0
 static char sccsid[] = "@(#)utilities.c        8.1 (Berkeley) 6/5/93";
 #else
-__RCSID("$NetBSD: utilities.c,v 1.12 2005/01/19 19:31:28 xtraeme Exp $");
+__RCSID("$NetBSD: utilities.c,v 1.13 2005/02/11 06:21:21 simonb Exp $");
 #endif
 #endif /* not lint */
 
@@ -385,7 +385,7 @@
                if (testbmap(i))
                                continue;
                setbmap(i);
-               n_blks ++;
+               n_blks++;
                return (i);
        }
        return (0);
diff -r 545d001a23fa -r 2ca63cb80bf5 sys/arch/arm/iomd/console/vidcrender.c
--- a/sys/arch/arm/iomd/console/vidcrender.c    Fri Feb 11 02:12:03 2005 +0000
+++ b/sys/arch/arm/iomd/console/vidcrender.c    Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vidcrender.c,v 1.13 2003/09/21 15:12:19 matt Exp $     */
+/*     $NetBSD: vidcrender.c,v 1.14 2005/02/11 06:21:22 simonb Exp $   */
 
 /*
  * Copyright (c) 1996 Mark Brinicombe
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vidcrender.c,v 1.13 2003/09/21 15:12:19 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcrender.c,v 1.14 2005/02/11 06:21:22 simonb Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1266,7 +1266,7 @@
        cursor_transparent += 32;
        cursor_transparent = (char *)((int)cursor_transparent & (~31) );
 
-       for ( line = 0; line<R_DATA->font->pixel_height; ++ line )
+       for ( line = 0; line<R_DATA->font->pixel_height; ++line )
        {
            for ( counter=0; counter<R_DATA->font->pixel_width/4;counter++ )
                cursor_normal[line*R_DATA->font->pixel_width + counter]=0x55;
@@ -1274,7 +1274,7 @@
                cursor_normal[line*R_DATA->font->pixel_width + counter]=0;
        }
 
-       for ( line = 0; line<R_DATA->font->pixel_height; ++ line )
+       for ( line = 0; line<R_DATA->font->pixel_height; ++line )
        {
            for ( counter=0; counter<R_DATA->font->pixel_width/4;counter++ )
                cursor_transparent[line*R_DATA->font->pixel_width + counter]=0x00;
diff -r 545d001a23fa -r 2ca63cb80bf5 sys/arch/arm/iomd/vidc20config.c
--- a/sys/arch/arm/iomd/vidc20config.c  Fri Feb 11 02:12:03 2005 +0000
+++ b/sys/arch/arm/iomd/vidc20config.c  Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vidc20config.c,v 1.17 2003/09/21 15:12:16 matt Exp $   */
+/*     $NetBSD: vidc20config.c,v 1.18 2005/02/11 06:21:22 simonb Exp $ */
 
 /*
  * Copyright (c) 2001 Reinoud Zandijk
@@ -48,7 +48,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: vidc20config.c,v 1.17 2003/09/21 15:12:16 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidc20config.c,v 1.18 2005/02/11 06:21:22 simonb Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -600,7 +600,7 @@
        cursor_transparent += 32;                                       /* ALIGN */
        cursor_transparent = (char *)((int)cursor_transparent & (~31) );
 
-       for ( line = 0; line<height; ++ line )
+       for ( line = 0; line<height; ++line )
        {
            for ( counter=0; counter<width/4;counter++ )
                cursor_normal[line * width + counter]=0x55;             /* why 0x55 ? */
@@ -608,7 +608,7 @@
                cursor_normal[line * width + counter]=0;
        }
 
-       for ( line = 0; line<height; ++ line )
+       for ( line = 0; line<height; ++line )
        {
            for ( counter=0; counter<width/4;counter++ )
                cursor_transparent[line * width + counter]=0x00;
diff -r 545d001a23fa -r 2ca63cb80bf5 sys/arch/atari/dev/ser.c
--- a/sys/arch/atari/dev/ser.c  Fri Feb 11 02:12:03 2005 +0000
+++ b/sys/arch/atari/dev/ser.c  Fri Feb 11 06:21:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ser.c,v 1.23 2003/08/07 16:27:02 agc Exp $     */
+/*     $NetBSD: ser.c,v 1.24 2005/02/11 06:21:21 simonb Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ser.c,v 1.23 2003/08/07 16:27:02 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ser.c,v 1.24 2005/02/11 06:21:21 simonb Exp $");
 
 #include "opt_ddb.h"
 #include "opt_mbtype.h"
@@ -1010,8 +1010,8 @@
 
        /* Output the first char */
        MFP->mf_udr = *sc->sc_tba;
-       sc->sc_tbc --;
-       sc->sc_tba ++;
+       sc->sc_tbc--;
+       sc->sc_tba++;
 
        splx(s);
        return;
@@ -1352,8 +1352,8 @@
                /* Output the next character, if any. */
                if (sc->sc_tbc > 0) {



Home | Main Index | Thread Index | Old Index