Subject: lib/10538: "passing incompatible pointer type" error in basesrc/lib/libskey/skeysubr.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <motoyuki@bsdclub.org>
List: netbsd-bugs
Date: 07/08/2000 03:56:21
>Number:         10538
>Category:       lib
>Synopsis:       "passing incompatible pointer type" error in basesrc/lib/libskey/skeysubr.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 08 03:57:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Motoyuki Konno
>Release:        NetBSD-current
>Organization:
bsdclub
>Environment:
NetBSD sparc.mk.bsdclub.org 1.5B NetBSD 1.5B (SPARC) #0:
Thu Jul  6 21:47:47 JST 2000
motoyuki@sparc.mk.bsdclub.org:/usr/src/sys/arch/sparc/compile/SPARC sparc


>Description:
make build stops because of the "passing args 3 of `mkSeedPassword'
from incompatible pointer type" error
of basesrc/lib/libskey/skeysubr.c
>How-To-Repeat:
in the /usr/src,
make build

>Fix:
Apply the following patch to basesrc/lib/libskey/skeysubr.c

--- skeysubr.c.old      Sat Jul  8 19:19:56 2000
+++ skeysubr.c  Sat Jul  8 19:17:11 2000
@@ -104,7 +104,7 @@
 {
        char *buf;
        MD4_CTX md;
-       unsigned int buflen;
+       size_t buflen;
        u_int32_t results[4];
 
        if ((buf = mkSeedPassword(seed, passwd, &buflen)) == NULL)
@@ -132,7 +132,7 @@
        char *buf;
        MD5_CTX md;
        u_int32_t results[4];
-       unsigned int buflen;
+       size_t buflen;
 
        if ((buf = mkSeedPassword(seed, passwd, &buflen)) == NULL)
                return -1;

@@ -159,7 +159,7 @@
        char *buf;
        SHA1_CTX sha;
        u_int32_t results[5];
-       unsigned int buflen;
+       size_t buflen;
        int i, j;
 
        if ((buf = mkSeedPassword(seed, passwd, &buflen)) == NULL)

>Release-Note:
>Audit-Trail:
>Unformatted: