I am getting a compile error in io.c when using the Metrowerks compiler. It needs a simple cast to fix it. Index: io.c =================================================================== RCS file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/io.c,v retrieving revision 1.50 diff -u -r1.50 io.c --- io.c 2000/06/14 19:12:16 1.50 +++ io.c 2000/07/21 18:43:06 @@ -36,7 +36,7 @@ static ber_slen_t BerRead LDAP_P(( Sockbuf *sb, - char *buf, + unsigned char *buf, ber_len_t len )); #define EXBUFSIZ 1024 @@ -52,7 +52,7 @@ static ber_slen_t BerRead( Sockbuf *sb, - char *buf, + unsigned char *buf, ber_len_t len ) { ber_slen_t c; ------------------------ Steve Sonntag Novell Directory Services +1 801 861 7097
What was the actual error which prompted this suggestion? At 06:49 PM 7/21/00 +0000, VTAG@novell.com wrote: >This is a MIME message. If you are reading this text, you may want to >consider changing to a mail reader or gateway that understands how to >properly handle MIME multipart messages. > >--=_8CD4C03E.ACCDA7C7 >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: quoted-printable > >I am getting a compile error in io.c when using the=20 >Metrowerks compiler. It needs a simple cast to fix it. > > >Index: io.c >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >RCS file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/io.c,v >retrieving revision 1.50 >diff -u -r1.50 io.c >--- io.c 2000/06/14 19:12:16 1.50 >+++ io.c 2000/07/21 18:43:06 >@@ -36,7 +36,7 @@ >=20 > static ber_slen_t BerRead LDAP_P(( > Sockbuf *sb, >- char *buf, >+ unsigned char *buf, > ber_len_t len )); >=20 > #define EXBUFSIZ 1024 >@@ -52,7 +52,7 @@ > static ber_slen_t > BerRead( > Sockbuf *sb, >- char *buf, >+ unsigned char *buf, > ber_len_t len ) > { > ber_slen_t c; > > > >------------------------ >Steve Sonntag >Novell Directory Services >+1 801 861 7097 > >--=_8CD4C03E.ACCDA7C7 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: quoted-printable > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> >I am getting a compile error in io.c when using the=20 >Metrowerks compiler. It needs a simple cast to = fix=20 it. > > >Index:=20 io.c >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >RCS=20 file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/io.c,v >retrieving = revision=20 1.50 >diff -u -r1.50 io.c >--- io.c 2000/06/14 19:12:16 1.50 >+++ = io.c=20 2000/07/21 18:43:06 >@@ -36,7 +36,7 @@ > > static = ber_slen_t=20 BerRead LDAP_P(( > Sockbuf *sb, >- char *buf, >+ unsigned = char=20 *buf, > ber_len_t len )); > > #define EXBUFSIZ = 1024 >@@=20 -52,7 +52,7 @@ > static ber_slen_t > BerRead( > = Sockbuf=20 *sb, >- char *buf, >+ unsigned char *buf, > ber_len_t len=20 ) > { > ber_slen_t c; > > > >------------------------ >Steve Sonntag >Novell = Directory=20 Services >+1 801 861 7097 > >--=_8CD4C03E.ACCDA7C7--
Fixed, thanks. At 06:49 PM 7/21/00 +0000, VTAG@novell.com wrote: >This is a MIME message. If you are reading this text, you may want to >consider changing to a mail reader or gateway that understands how to >properly handle MIME multipart messages. > >--=_8CD4C03E.ACCDA7C7 >Content-Type: text/plain; charset=US-ASCII >Content-Transfer-Encoding: quoted-printable > >I am getting a compile error in io.c when using the=20 >Metrowerks compiler. It needs a simple cast to fix it. > > >Index: io.c >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >RCS file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/io.c,v >retrieving revision 1.50 >diff -u -r1.50 io.c >--- io.c 2000/06/14 19:12:16 1.50 >+++ io.c 2000/07/21 18:43:06 >@@ -36,7 +36,7 @@ >=20 > static ber_slen_t BerRead LDAP_P(( > Sockbuf *sb, >- char *buf, >+ unsigned char *buf, > ber_len_t len )); >=20 > #define EXBUFSIZ 1024 >@@ -52,7 +52,7 @@ > static ber_slen_t > BerRead( > Sockbuf *sb, >- char *buf, >+ unsigned char *buf, > ber_len_t len ) > { > ber_slen_t c; > > > >------------------------ >Steve Sonntag >Novell Directory Services >+1 801 861 7097 > >--=_8CD4C03E.ACCDA7C7 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: quoted-printable > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> >I am getting a compile error in io.c when using the=20 >Metrowerks compiler. It needs a simple cast to = fix=20 it. > > >Index:=20 io.c >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >RCS=20 file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/io.c,v >retrieving = revision=20 1.50 >diff -u -r1.50 io.c >--- io.c 2000/06/14 19:12:16 1.50 >+++ = io.c=20 2000/07/21 18:43:06 >@@ -36,7 +36,7 @@ > > static = ber_slen_t=20 BerRead LDAP_P(( > Sockbuf *sb, >- char *buf, >+ unsigned = char=20 *buf, > ber_len_t len )); > > #define EXBUFSIZ = 1024 >@@=20 -52,7 +52,7 @@ > static ber_slen_t > BerRead( > = Sockbuf=20 *sb, >- char *buf, >+ unsigned char *buf, > ber_len_t len=20 ) > { > ber_slen_t c; > > > >------------------------ >Steve Sonntag >Novell = Directory=20 Services >+1 801 861 7097 > >--=_8CD4C03E.ACCDA7C7--
moved from Incoming to Documentation
changed state Open to Closed moved from Documentation to Development