[Date Prev][Date Next] [Chronological] [Thread] [Top]

Compile error in libraries/liblber/io.c (ITS#634)



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">
<HTML>
<HEAD>

<META content=3D"text/html; charset=3Diso-8859-1" http-equiv=3DContent-Type=
>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY style=3D"FONT: 8pt MS Sans Serif; MARGIN-LEFT: 2px; MARGIN-TOP: =
2px">
<DIV><FONT size=3D1>I am getting a compile error in io.c when using the=20
</FONT></DIV>
<DIV><FONT size=3D1>Metrowerks compiler.&nbsp; It needs a simple cast to =
fix=20
it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>Index:=20
io.c<BR>=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<BR>RCS=20
file: /repo/OpenLDAP/pkg/ldap/libraries/liblber/io.c,v<BR>retrieving =
revision=20
1.50<BR>diff -u -r1.50 io.c<BR>--- io.c 2000/06/14 19:12:16 1.50<BR>+++ =
io.c=20
2000/07/21 18:43:06<BR>@@ -36,7 +36,7 @@<BR>&nbsp;<BR>&nbsp;static =
ber_slen_t=20
BerRead LDAP_P((<BR>&nbsp; Sockbuf *sb,<BR>- char *buf,<BR>+ unsigned =
char=20
*buf,<BR>&nbsp; ber_len_t len ));<BR>&nbsp;<BR>&nbsp;#define EXBUFSIZ =
1024<BR>@@=20
-52,7 +52,7 @@<BR>&nbsp;static ber_slen_t<BR>&nbsp;BerRead(<BR>&nbsp; =
Sockbuf=20
*sb,<BR>- char *buf,<BR>+ unsigned char *buf,<BR>&nbsp; ber_len_t len=20
)<BR>&nbsp;{<BR>&nbsp; ber_slen_t c;</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>------------------------<BR>Steve Sonntag<BR>Novell =
Directory=20
Services<BR>+1 801 861 7097<BR></FONT></DIV></BODY></HTML>

--=_8CD4C03E.ACCDA7C7--