From: Kurt Zeilenga Date: Sat, 24 Oct 1998 22:06:36 +0000 (+0000) Subject: remove some lint... X-Git-Tag: PHP3_TOOL_0_0~18^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44268993962acd16029f7339595fbea202432482;p=openldap remove some lint... --- diff --git a/clients/tools/ldapsearch.dsp b/clients/tools/ldapsearch.dsp index 9927479c89..87e9db537a 100644 --- a/clients/tools/ldapsearch.dsp +++ b/clients/tools/ldapsearch.dsp @@ -67,7 +67,7 @@ LINK32=link.exe # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W4 /Gm /GX /Zi /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe diff --git a/libraries/liblber/decode.c b/libraries/liblber/decode.c index b99f97ac9d..9162339cc7 100644 --- a/libraries/liblber/decode.c +++ b/libraries/liblber/decode.c @@ -160,7 +160,7 @@ ber_getnint( BerElement *ber, long *num, int len ) sign = (0x80 & *(p+diff) ); if ( sign && len < sizeof(long) ) { for ( i = 0; i < diff; i++ ) { - *(p+i) = (char) 0xff; + *(p+i) = (unsigned char) 0xff; } } *num = AC_NTOHL( netnum ); diff --git a/libraries/liblber/encode.c b/libraries/liblber/encode.c index af320f372c..c31bd3ce21 100644 --- a/libraries/liblber/encode.c +++ b/libraries/liblber/encode.c @@ -127,7 +127,7 @@ ber_put_len( BerElement *ber, unsigned long len, int nosos ) if ( len & mask ) break; } - lenlen = ++i; + lenlen = (unsigned char) ++i; if ( lenlen > 4 ) return( -1 ); lenlen |= 0x80; diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index 0b9a59d1cf..798448f421 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -137,9 +137,8 @@ ber_filbuf( Sockbuf *sb, long len ) #endif /* LDAP_CONNECTIONLESS */ } else { rc = read( sb->sb_sd, sb->sb_ber.ber_buf, - ((sb->sb_options & LBER_NO_READ_AHEAD) && - (len < READBUFSIZ)) ? - len : READBUFSIZ ); + ((sb->sb_options & LBER_NO_READ_AHEAD) && (len < READBUFSIZ)) ? + len : READBUFSIZ ); } if ( rc > 0 ) { @@ -164,7 +163,7 @@ BerRead( Sockbuf *sb, char *buf, long len ) break; return( c ); } - *buf++ = c; + *buf++ = (char) c; nread++; len--; } @@ -335,7 +334,7 @@ ber_alloc_t( int options ) if ( (ber = (BerElement *) calloc( 1, sizeof(BerElement) )) == NULLBER ) return( NULLBER ); ber->ber_tag = LBER_DEFAULT; - ber->ber_options = options; + ber->ber_options = (char) options; return( ber ); } @@ -371,7 +370,7 @@ ber_init( BerElement *ber, int options ) { (void) memset( (char *)ber, '\0', sizeof( BerElement )); ber->ber_tag = LBER_DEFAULT; - ber->ber_options = options; + ber->ber_options = (char) options; } diff --git a/libraries/liblber/liblber.dsp b/libraries/liblber/liblber.dsp index e0457f90f6..996c57c717 100644 --- a/libraries/liblber/liblber.dsp +++ b/libraries/liblber/liblber.dsp @@ -60,7 +60,7 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "Debug\liblber" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /W4 /GX /Z7 /Od /I "..\..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo diff --git a/libraries/libldap/libldap.dsp b/libraries/libldap/libldap.dsp index 2d90c6392b..4d6d5fccc5 100644 --- a/libraries/libldap/libldap.dsp +++ b/libraries/libldap/libldap.dsp @@ -60,7 +60,7 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "Debug\libldap" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /W4 /GX /Z7 /Od /I "..\..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo diff --git a/libraries/libldif/libldif.dsp b/libraries/libldif/libldif.dsp index e9fb0c2b97..72402a4370 100644 --- a/libraries/libldif/libldif.dsp +++ b/libraries/libldif/libldif.dsp @@ -60,7 +60,7 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /W4 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo diff --git a/libraries/liblutil/liblutil.dsp b/libraries/liblutil/liblutil.dsp index 59de922e50..25674c47b0 100644 --- a/libraries/liblutil/liblutil.dsp +++ b/libraries/liblutil/liblutil.dsp @@ -60,7 +60,7 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "Debug" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /W4 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo