Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/nvi/dist/vi KNF; remove parentheses from return's



details:   https://anonhg.NetBSD.org/src/rev/ef061d2f3b76
branches:  trunk
changeset: 821041:ef061d2f3b76
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Jan 21 22:06:46 2017 +0000

description:
KNF; remove parentheses from return's

diffstat:

 external/bsd/nvi/dist/vi/v_paragraph.c |  24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diffs (96 lines):

diff -r 9a6070f52ed6 -r ef061d2f3b76 external/bsd/nvi/dist/vi/v_paragraph.c
--- a/external/bsd/nvi/dist/vi/v_paragraph.c    Sat Jan 21 20:30:29 2017 +0000
+++ b/external/bsd/nvi/dist/vi/v_paragraph.c    Sat Jan 21 22:06:46 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: v_paragraph.c,v 1.3 2014/01/26 21:43:45 christos Exp $ */
+/*     $NetBSD: v_paragraph.c,v 1.4 2017/01/21 22:06:46 rin Exp $ */
 /*-
  * Copyright (c) 1992, 1993, 1994
  *     The Regents of the University of California.  All rights reserved.
@@ -16,7 +16,7 @@
 static const char sccsid[] = "Id: v_paragraph.c,v 10.10 2001/06/25 15:19:32 skimo Exp  (Berkeley) Date: 2001/06/25 15:19:32 ";
 #endif /* not lint */
 #else
-__RCSID("$NetBSD: v_paragraph.c,v 1.3 2014/01/26 21:43:45 christos Exp $");
+__RCSID("$NetBSD: v_paragraph.c,v 1.4 2017/01/21 22:06:46 rin Exp $");
 #endif
 
 #include <sys/types.h>
@@ -100,7 +100,7 @@
                        vp->m_stop = vp->m_start;
                        vp->m_stop.cno = 0;
                        if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno))
-                               return (1);
+                               return 1;
                        if (vp->m_start.cno <= vp->m_stop.cno)
                                F_SET(vp, VM_LMODE);
                }
@@ -158,7 +158,7 @@
                                vp->m_stop.cno = 0;
                                vp->m_final = vp->m_stop;
                        }
-                       return (0);
+                       return 0;
                default:
                        abort();
                }
@@ -175,13 +175,13 @@
 eof:   if (vp->m_start.lno == lno || vp->m_start.lno == lno - 1) {
                if (db_eget(sp, vp->m_start.lno, &p, &len, &isempty)) {
                        if (!isempty)
-                               return (1);
+                               return 1;
                        vp->m_start.cno = 0;
-                       return (0);
+                       return 0;
                }
                if (vp->m_start.cno == (len ? len - 1 : 0)) {
                        v_eof(sp, NULL);
-                       return (1);
+                       return 1;
                }
        }
        /*
@@ -199,7 +199,7 @@
        vp->m_stop.lno = lno - 1;
        vp->m_stop.cno = len ? len - 1 : 0;
        vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop;
-       return (0);
+       return 0;
 }
 
 /*
@@ -241,7 +241,7 @@
                if (vp->m_start.cno == 0) {
                        if (vp->m_start.lno == 1) {
                                v_sof(sp, &vp->m_start);
-                               return (1);
+                               return 1;
                        } else
                                --vp->m_start.lno;
                        F_SET(vp, VM_LMODE);
@@ -307,7 +307,7 @@
         * adjusted the start of the range for motion commands).
         */
        vp->m_final = vp->m_stop;
-       return (0);
+       return 0;
 }
 
 /*
@@ -331,7 +331,7 @@
        s_len = s_p == NULL ? 0 : strlen(s_p);
 
        if (p_len == 0 && s_len == 0)
-               return (0);
+               return 0;
 
        MALLOC_RET(sp, p, char *, p_len + s_len + 1);
 
@@ -344,5 +344,5 @@
        if (s_p != NULL)
                memmove(p + p_len, s_p, s_len + 1);
        vip->ps = p;
-       return (0);
+       return 0;
 }



Home | Main Index | Thread Index | Old Index