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: fix compiler warning about signedness in ...
details: https://anonhg.NetBSD.org/src/rev/cd3ac5bd7f3d
branches: trunk
changeset: 980391:cd3ac5bd7f3d
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Feb 03 06:58:22 2021 +0000
description:
make: fix compiler warning about signedness in comparison
diffstat:
usr.bin/make/util.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1b3ad8dea63b -r cd3ac5bd7f3d usr.bin/make/util.c
--- a/usr.bin/make/util.c Wed Feb 03 06:51:26 2021 +0000
+++ b/usr.bin/make/util.c Wed Feb 03 06:58:22 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.74 2021/02/01 19:46:58 rillig Exp $ */
+/* $NetBSD: util.c,v 1.75 2021/02/03 06:58:22 rillig Exp $ */
/*
* Missing stuff from OS's
@@ -15,7 +15,7 @@
#include "make.h"
-MAKE_RCSID("$NetBSD: util.c,v 1.74 2021/02/01 19:46:58 rillig Exp $");
+MAKE_RCSID("$NetBSD: util.c,v 1.75 2021/02/03 06:58:22 rillig Exp $");
#if !defined(MAKE_NATIVE) && !defined(HAVE_STRERROR)
extern int errno, sys_nerr;
@@ -45,7 +45,7 @@
len = strlen(name);
for (i = 0; (q = environ[i]); i++) {
p = strchr(q, '=');
- if (p == NULL || p - q != len)
+ if (p == NULL || (size_t)(p - q) != len)
continue;
if (strncmp(name, q, len) == 0) {
*offset = i;
Home |
Main Index |
Thread Index |
Old Index