]> git.sur5r.net Git - openldap/commitdiff
Silence gcc warnings (signed vs. unsigned, implicit declarations, unused vars).
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 19 Jan 2003 15:03:25 +0000 (15:03 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 19 Jan 2003 15:03:25 +0000 (15:03 +0000)
clients/tools/ldapsearch.c
libraries/liblutil/uuid.c
servers/slapd/ad.c
servers/slapd/back-bdb/init.c
servers/slapd/back-ldap/config.c
servers/slapd/backglue.c

index 5671a9229729550a0d8b5eea7b0f72a9a71d88c6..0b73cd2ab79dd1e543524c4d9c78cc18d3ff0320 100644 (file)
@@ -729,7 +729,7 @@ getNextPage:
                i = 0;
                moreEntries = getchar();
                while ( moreEntries != EOF && moreEntries != '\n' ) { 
-                       if ( i < sizeof(buf) - 1 ) {
+                       if ( i < (int)sizeof(buf) - 1 ) {
                                buf[i] = moreEntries;
                                i++;
                        }
index 1fcb5bc97b928cf743d7d7cb51d377f558e0a267..a9640c13603197e4ef7dbf3b87a665a88b9ab97a 100644 (file)
@@ -21,6 +21,7 @@
 #include <sys/types.h>
 
 #include <ac/stdlib.h>
+#include <ac/string.h> /* get memcmp() */
 
 #ifdef HAVE_UUID_TO_STR
 #  include <sys/uuid.h>
index a6083bd379c079978a9f1da1f30cc9ffcec171fc..9c13cc18684019f7380228689ae67881345f207f 100644 (file)
@@ -748,7 +748,8 @@ str2anlist( AttributeName *an, char *in, const char *brkstr )
 int
 ad_define_option( const char *name, const char *fname, int lineno )
 {
-       int i, j, len, optlen;
+       int i;
+       unsigned int optlen;
 
        if ( options == &lang_option ) {
                options = NULL;
index 659c2e78fa4df33b663ab8bf389eb3340a91c07c..5c619263e2b93ad410c9a9c4228460996d6fd1a4 100644 (file)
@@ -126,7 +126,7 @@ bdb_bt_compare(
        c = curkey->data;
 
 #ifdef WORDS_BIGENDIAN
-       for( i = 0; i < sizeof(ID); i++)
+       for( i = 0; i < (int)sizeof(ID); i++)
 #else
        for( i = sizeof(ID)-1; i >= 0; i--)
 #endif
index b61821914ca8f3ea1b2d4e9056618b757ede5e91..13e49922d3dda8685e3b13895ad8031cb5b4e628 100644 (file)
@@ -444,7 +444,7 @@ suffix_massage_config(
                         */
                        return -1;
 
-               } else if ( len >= sizeof( vbuf_ ) ) {
+               } else if ( len >= (int)sizeof( vbuf_ ) ) {
                        /* 
                         * C99: snprintf returns the required size 
                         */
@@ -459,7 +459,7 @@ suffix_massage_config(
                if ( len == -1 ) {
                        return -1;
 
-               } else if ( len >= sizeof( rbuf_ ) ) {
+               } else if ( len >= (int)sizeof( rbuf_ ) ) {
                        rbuf = ch_malloc( len + 1 );
                        len = snprintf( rbuf, sizeof( rbuf_ ), "%%1%s)%%2", 
                                        nrnc->bv_val );
index ba839c13ced562a01c49edd4c660c7ad60800dc4..591cff21a9dbfd4adb581ed8e9ecf0cdce547be4 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <stdio.h>
 
+#include <ac/string.h>
 #include <ac/socket.h>
 
 #define SLAPD_TOOLS