Module Name:    src
Committed By:   rillig
Date:           Tue Dec 15 21:19:47 UTC 2020

Modified Files:
        src/usr.bin/make: job.c targ.c

Log Message:
make(1): format function definitions consistently


To generate a diff of this commit:
cvs rdiff -u -r1.387 -r1.388 src/usr.bin/make/job.c
cvs rdiff -u -r1.155 -r1.156 src/usr.bin/make/targ.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/job.c
diff -u src/usr.bin/make/job.c:1.387 src/usr.bin/make/job.c:1.388
--- src/usr.bin/make/job.c:1.387	Sun Dec 13 20:14:48 2020
+++ src/usr.bin/make/job.c	Tue Dec 15 21:19:47 2020
@@ -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 @@ JobDeleteTarget(GNode *gn)
  * 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 JobSigLock(sigset_t *omaskp)
 	}
 }
 
-static void JobSigUnlock(sigset_t *omaskp)
+static void
+JobSigUnlock(sigset_t *omaskp)
 {
 	(void)sigprocmask(SIG_SETMASK, omaskp, NULL);
 }
@@ -2271,7 +2273,8 @@ DelSig(int sig)
 		(void)bmake_signal(sig, SIG_DFL);
 }
 
-static void JobSigReset(void)
+static void
+JobSigReset(void)
 {
 	DelSig(SIGINT);
 	DelSig(SIGHUP);

Index: src/usr.bin/make/targ.c
diff -u src/usr.bin/make/targ.c:1.155 src/usr.bin/make/targ.c:1.156
--- src/usr.bin/make/targ.c:1.155	Sat Dec 12 00:05:05 2020
+++ src/usr.bin/make/targ.c	Tue Dec 15 21:19:47 2020
@@ -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 @@ Targ_NewInternalNode(const char *name)
  * 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

Reply via email to