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): fix indentation in JobCreatePipe



details:   https://anonhg.NetBSD.org/src/rev/3431a4fe0ed2
branches:  trunk
changeset: 944404:3431a4fe0ed2
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Sep 27 23:52:02 2020 +0000

description:
make(1): fix indentation in JobCreatePipe

diffstat:

 usr.bin/make/job.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r ca78f0a815a1 -r 3431a4fe0ed2 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Sun Sep 27 23:17:36 2020 +0000
+++ b/usr.bin/make/job.c        Sun Sep 27 23:52:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.246 2020/09/27 21:35:16 rillig Exp $ */
+/*     $NetBSD: job.c,v 1.247 2020/09/27 23:52:02 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.246 2020/09/27 21:35:16 rillig Exp $");
+MAKE_RCSID("$NetBSD: job.c,v 1.247 2020/09/27 23:52:02 rillig Exp $");
 
 # define STATIC static
 
@@ -406,12 +406,12 @@
        Punt("Cannot create pipe: %s", strerror(errno));
 
     for (i = 0; i < 2; i++) {
-       /* Avoid using low numbered fds */
-       fd = fcntl(job->jobPipe[i], F_DUPFD, minfd);
-       if (fd != -1) {
-          close(job->jobPipe[i]);
-          job->jobPipe[i] = fd;
-       }
+       /* Avoid using low numbered fds */
+       fd = fcntl(job->jobPipe[i], F_DUPFD, minfd);
+       if (fd != -1) {
+           close(job->jobPipe[i]);
+           job->jobPipe[i] = fd;
+       }
     }
 
     /* Set close-on-exec flag for both */



Home | Main Index | Thread Index | Old Index