Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa KNF a bit.



details:   https://anonhg.NetBSD.org/src/rev/bca5305f4ab9
branches:  trunk
changeset: 765174:bca5305f4ab9
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri May 20 16:33:07 2011 +0000

description:
KNF a bit.

diffstat:

 sys/lib/libsa/subr_prf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 7260ebe82bc1 -r bca5305f4ab9 sys/lib/libsa/subr_prf.c
--- a/sys/lib/libsa/subr_prf.c  Fri May 20 16:02:21 2011 +0000
+++ b/sys/lib/libsa/subr_prf.c  Fri May 20 16:33:07 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_prf.c,v 1.19 2011/02/25 00:20:36 joerg Exp $      */
+/*     $NetBSD: subr_prf.c,v 1.20 2011/05/20 16:33:07 tsutsui Exp $    */
 
 /*-
  * Copyright (c) 1993
@@ -234,7 +234,8 @@
                case 's':
                        p = va_arg(ap, char *);
 #ifdef LIBSA_PRINTF_WIDTH_SUPPORT
-                       for (q = p; *q; ++q);
+                       for (q = p; *q != '\0'; ++q)
+                               continue;
                        width -= q - p;
 #endif
                        RPAD();



Home | Main Index | Thread Index | Old Index