Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): format function definitions consistently



details:   https://anonhg.NetBSD.org/src/rev/f934bed8b552
branches:  trunk
changeset: 979145:f934bed8b552
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Dec 15 21:19:47 2020 +0000

description:
make(1): format function definitions consistently

diffstat:

 usr.bin/make/job.c  |  13 ++++++++-----
 usr.bin/make/targ.c |   7 ++++---
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (76 lines):

diff -r 550863530d81 -r f934bed8b552 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Tue Dec 15 20:39:15 2020 +0000
+++ b/usr.bin/make/job.c        Tue Dec 15 21:19:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.387 2020/12/13 20:14:48 rillig Exp $ */
+/*     $NetBSD: job.c,v 1.388 2020/12/15 21:19:47 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -143,7 +143,7 @@
 #include "trace.h"
 
 /*     "@(#)job.c      8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: job.c,v 1.387 2020/12/13 20:14:48 rillig Exp $");
+MAKE_RCSID("$NetBSD: job.c,v 1.388 2020/12/15 21:19:47 rillig Exp $");
 
 /*
  * A shell defines how the commands are run.  All commands for a target are
@@ -519,7 +519,8 @@
  * Signal lock routines to get exclusive access. Currently used to
  * protect `jobs' and `stoppedJobs' list manipulations.
  */
-static void JobSigLock(sigset_t *omaskp)
+static void
+JobSigLock(sigset_t *omaskp)
 {
        if (sigprocmask(SIG_BLOCK, &caught_signals, omaskp) != 0) {
                Punt("JobSigLock: sigprocmask: %s", strerror(errno));
@@ -527,7 +528,8 @@
        }
 }
 
-static void JobSigUnlock(sigset_t *omaskp)
+static void
+JobSigUnlock(sigset_t *omaskp)
 {
        (void)sigprocmask(SIG_SETMASK, omaskp, NULL);
 }
@@ -2271,7 +2273,8 @@
                (void)bmake_signal(sig, SIG_DFL);
 }
 
-static void JobSigReset(void)
+static void
+JobSigReset(void)
 {
        DelSig(SIGINT);
        DelSig(SIGHUP);
diff -r 550863530d81 -r f934bed8b552 usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Tue Dec 15 20:39:15 2020 +0000
+++ b/usr.bin/make/targ.c       Tue Dec 15 21:19:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.155 2020/12/12 00:05:05 rillig Exp $        */
+/*     $NetBSD: targ.c,v 1.156 2020/12/15 21:19:47 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -113,7 +113,7 @@
 #include "dir.h"
 
 /*     "@(#)targ.c     8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.155 2020/12/12 00:05:05 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.156 2020/12/15 21:19:47 rillig Exp $");
 
 /*
  * All target nodes that appeared on the left-hand side of one of the
@@ -317,7 +317,8 @@
  * Return the .END node, which contains the commands to be run when
  * everything else has been made.
  */
-GNode *Targ_GetEndNode(void)
+GNode *
+Targ_GetEndNode(void)
 {
        /*
         * Save the node locally to avoid having to search for it all



Home | Main Index | Thread Index | Old Index