Source-Changes-HG archive

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

[src/trunk]: src No semicolon after macro do ... while (0) wrapper.



details:   https://anonhg.NetBSD.org/src/rev/a69a6cb2fdcb
branches:  trunk
changeset: 320105:a69a6cb2fdcb
user:      gson <gson%NetBSD.org@localhost>
date:      Sat Jun 23 07:21:00 2018 +0000

description:
No semicolon after macro do ... while (0) wrapper.

diffstat:

 libexec/ftpd/extern.h |  4 ++--
 sys/sys/ipc.h         |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 4c5a5ed8d42a -r a69a6cb2fdcb libexec/ftpd/extern.h
--- a/libexec/ftpd/extern.h     Sat Jun 23 06:57:24 2018 +0000
+++ b/libexec/ftpd/extern.h     Sat Jun 23 07:21:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.63 2013/03/21 05:53:01 lukem Exp $        */
+/*     $NetBSD: extern.h,v 1.64 2018/06/23 07:21:00 gson Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -358,7 +358,7 @@
 
 #define        CPUTC(c, f)     do { \
                                putc(c, f); total_bytes++; total_bytes_out++; \
-                       } while (0);
+                       } while (0)
 
 #define CURCLASSTYPE   curclass.type == CLASS_GUEST  ? "GUEST"  : \
                        curclass.type == CLASS_CHROOT ? "CHROOT" : \
diff -r 4c5a5ed8d42a -r a69a6cb2fdcb sys/sys/ipc.h
--- a/sys/sys/ipc.h     Sat Jun 23 06:57:24 2018 +0000
+++ b/sys/sys/ipc.h     Sat Jun 23 07:21:00 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipc.h,v 1.36 2015/05/19 12:17:53 joerg Exp $   */
+/*     $NetBSD: ipc.h,v 1.37 2018/06/23 07:23:06 gson Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -131,7 +131,7 @@
        (dst).cgid = (src).cgid; \
        (dst).mode = (src).mode; \
        (dst)._seq = (src)._seq; \
-} while (/*CONSTCOND*/ 0);
+} while (/*CONSTCOND*/ 0)
 
 /*
  * Set-up the sysctl routine for COMPAT_50



Home | Main Index | Thread Index | Old Index