Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pkg_install/dist/add fix build, sign comparison...



details:   https://anonhg.NetBSD.org/src/rev/908ed77aee0d
branches:  trunk
changeset: 954479:908ed77aee0d
user:      nia <nia%NetBSD.org@localhost>
date:      Sat Apr 10 20:07:57 2021 +0000

description:
fix build, sign comparison is an issue here

diffstat:

 external/bsd/pkg_install/dist/add/perform.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bcd6c60111fa -r 908ed77aee0d external/bsd/pkg_install/dist/add/perform.c
--- a/external/bsd/pkg_install/dist/add/perform.c       Sat Apr 10 19:49:59 2021 +0000
+++ b/external/bsd/pkg_install/dist/add/perform.c       Sat Apr 10 20:07:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.9 2021/04/10 19:49:59 nia Exp $  */
+/*     $NetBSD: perform.c,v 1.10 2021/04/10 20:07:57 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.9 2021/04/10 19:49:59 nia Exp $");
+__RCSID("$NetBSD: perform.c,v 1.10 2021/04/10 20:07:57 nia Exp $");
 
 /*-
  * Copyright (c) 2003 Grant Beattie <grant%NetBSD.org@localhost>
@@ -159,7 +159,7 @@
                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