pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/pkg_install/files/add
Module Name: pkgsrc
Committed By: nia
Date: Sat Apr 10 20:10:48 UTC 2021
Modified Files:
pkgsrc/pkgtools/pkg_install/files/add: perform.c
Log Message:
pkg_install: add a cast to satisfy GCC, NFCI
To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 pkgsrc/pkgtools/pkg_install/files/add/perform.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/pkg_install/files/add/perform.c
diff -u pkgsrc/pkgtools/pkg_install/files/add/perform.c:1.119 pkgsrc/pkgtools/pkg_install/files/add/perform.c:1.120
--- pkgsrc/pkgtools/pkg_install/files/add/perform.c:1.119 Sat Apr 10 11:36:56 2021
+++ pkgsrc/pkgtools/pkg_install/files/add/perform.c Sat Apr 10 20:10:48 2021
@@ -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@localhost>
@@ -159,7 +159,7 @@ compatible_platform(const char *opsys, c
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;
Home |
Main Index |
Thread Index |
Old Index