Module Name:    src
Committed By:   mrg
Date:           Sat Sep  9 04:38:49 UTC 2023

Modified Files:
        src/usr.bin/make: main.c

Log Message:
add explicit cast for long -> int truncation warning-as-error.

as this is number of CPUs, i don't think we have to care about
it for a long, long, *long* time...


To generate a diff of this commit:
cvs rdiff -u -r1.594 -r1.595 src/usr.bin/make/main.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/main.c
diff -u src/usr.bin/make/main.c:1.594 src/usr.bin/make/main.c:1.595
--- src/usr.bin/make/main.c:1.594	Sat Sep  9 01:30:59 2023
+++ src/usr.bin/make/main.c	Sat Sep  9 04:38:48 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.594 2023/09/09 01:30:59 sjg Exp $	*/
+/*	$NetBSD: main.c,v 1.595 2023/09/09 04:38:48 mrg Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -111,7 +111,7 @@
 #include "trace.h"
 
 /*	"@(#)main.c	8.3 (Berkeley) 3/19/94"	*/
-MAKE_RCSID("$NetBSD: main.c,v 1.594 2023/09/09 01:30:59 sjg Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.595 2023/09/09 04:38:48 mrg Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
 	    "The Regents of the University of California.  "
@@ -414,7 +414,7 @@ MainParseArgJobs(const char *argvalue)
 			d = 0;
 		if (d > 0) {
 			p = strchr(argvalue, 0);
-			opts.maxJobs = sysconf(_SC_NPROCESSORS_ONLN);
+			opts.maxJobs = (int)sysconf(_SC_NPROCESSORS_ONLN);
 			opts.maxJobs = (int)(d * (double)opts.maxJobs);
 		}
 	}

Reply via email to