diff options
author | nia <nia@pkgsrc.org> | 2021-04-10 20:10:48 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-04-10 20:10:48 +0000 |
commit | 03e6fd028ac4bf747dafc0a733e27faa0d9fb452 (patch) | |
tree | 3b2e5656d3f1c4869deed106980ee2c07fa746c2 /pkgtools | |
parent | d9939dcd9f9b09be94cf2aff033f2f0041040a47 (diff) | |
download | pkgsrc-03e6fd028ac4bf747dafc0a733e27faa0d9fb452.tar.gz |
pkg_install: add a cast to satisfy GCC, NFCI
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/add/perform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index 44480766372..2a1d99941df 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.119 2021/04/10 11:36:56 nia Exp $ */ +/* $NetBSD: perform.c,v 1.120 2021/04/10 20:10:48 nia Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif @@ -6,7 +6,7 @@ #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif -__RCSID("$NetBSD: perform.c,v 1.119 2021/04/10 11:36:56 nia Exp $"); +__RCSID("$NetBSD: perform.c,v 1.120 2021/04/10 20:10:48 nia Exp $"); /*- * Copyright (c) 2003 Grant Beattie <grant@NetBSD.org> @@ -159,7 +159,7 @@ compatible_platform(const char *opsys, const char *host, const char *package) loc = strchr(host, '.'); if (loc != NULL) { majorlen = loc - host; - if (majorlen != (strchr(package, '.') - package)) + if (majorlen != (size_t)(strchr(package, '.') - package)) return 0; if (strncmp(host, package, majorlen) == 0) return 1; |