Source-Changes-HG archive

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

[src/trunk]: src/sbin/newfs Terminate expression with a semicolon, instead of...



details:   https://anonhg.NetBSD.org/src/rev/62434b273973
branches:  trunk
changeset: 343969:62434b273973
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Mar 07 15:09:55 2016 +0000

description:
Terminate expression with a semicolon, instead of accidentally
splicing to the next line with a comma. Noticed by Christos. Has no
actual effect, fortunately. (Compiler output is unchanged.)

diffstat:

 sbin/newfs/mkfs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 379fa02596b1 -r 62434b273973 sbin/newfs/mkfs.c
--- a/sbin/newfs/mkfs.c Mon Mar 07 14:47:25 2016 +0000
+++ b/sbin/newfs/mkfs.c Mon Mar 07 15:09:55 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkfs.c,v 1.125 2015/06/16 23:18:55 christos Exp $      */
+/*     $NetBSD: mkfs.c,v 1.126 2016/03/07 15:09:55 dholland Exp $      */
 
 /*
  * Copyright (c) 1980, 1989, 1993
@@ -73,7 +73,7 @@
 #if 0
 static char sccsid[] = "@(#)mkfs.c     8.11 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: mkfs.c,v 1.125 2015/06/16 23:18:55 christos Exp $");
+__RCSID("$NetBSD: mkfs.c,v 1.126 2016/03/07 15:09:55 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -734,7 +734,7 @@
        /*
         * Write out the super-block and zeros until the first cg info
         */
-       i = cgsblock(&sblock, 0) * sblock.fs_fsize - sblock.fs_sblockloc,
+       i = cgsblock(&sblock, 0) * sblock.fs_fsize - sblock.fs_sblockloc;
        memset(iobuf, 0, i);
        memcpy(iobuf, &sblock, sizeof sblock);
        if (needswap)



Home | Main Index | Thread Index | Old Index