Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/dhcp unsigned != size_t (tripped up build on alpha).



details:   https://anonhg.NetBSD.org/src/rev/0543e8e633c0
branches:  trunk
changeset: 485250:0543e8e633c0
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sun Apr 23 02:47:57 2000 +0000

description:
unsigned != size_t (tripped up build on alpha).

diffstat:

 usr.sbin/dhcp/common/hash.c    |  4 ++--
 usr.sbin/dhcp/includes/dhcpd.h |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 657a741d0154 -r 0543e8e633c0 usr.sbin/dhcp/common/hash.c
--- a/usr.sbin/dhcp/common/hash.c       Sun Apr 23 00:46:59 2000 +0000
+++ b/usr.sbin/dhcp/common/hash.c       Sun Apr 23 02:47:57 2000 +0000
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: hash.c,v 1.1.1.4 2000/04/22 07:11:34 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: hash.c,v 1.2 2000/04/23 02:47:58 sommerfeld Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -216,7 +216,7 @@
        return (unsigned char *)0;
 }
 
-int casecmp (const void *v1, const void *v2, unsigned len)
+int casecmp (const void *v1, const void *v2, size_t len)
 {
        unsigned i;
        const char *s = v1;
diff -r 657a741d0154 -r 0543e8e633c0 usr.sbin/dhcp/includes/dhcpd.h
--- a/usr.sbin/dhcp/includes/dhcpd.h    Sun Apr 23 00:46:59 2000 +0000
+++ b/usr.sbin/dhcp/includes/dhcpd.h    Sun Apr 23 02:47:57 2000 +0000
@@ -1482,7 +1482,7 @@
                               const unsigned char *, unsigned));
 void *hash_lookup PROTO ((struct hash_table *,
                          const unsigned char *, unsigned));
-int casecmp (const void *s, const void *t, unsigned len);
+int casecmp (const void *s, const void *t, size_t len);
 
 /* tables.c */
 extern struct universe dhcp_universe;



Home | Main Index | Thread Index | Old Index