]> git.sur5r.net Git - openldap/commitdiff
Remove lint
authorKurt Zeilenga <kurt@openldap.org>
Tue, 4 Dec 2001 06:14:16 +0000 (06:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 4 Dec 2001 06:14:16 +0000 (06:14 +0000)
libraries/liblber/decode.c

index bd994cfef0665dc97c526f41f3c3c9a8a6773580..d79f8cbeb633574f993f69e4db4962182776ca2b 100644 (file)
@@ -590,14 +590,14 @@ ber_scanf ( BerElement *ber,
                            tag != LBER_DEFAULT && rc != LBER_DEFAULT;
                            tag = ber_next_element( ber, &len, last ) )
                        {
-                               void *save = *sss;
+                               char **save = *sss;
 
                                *sss = (char **) LBER_REALLOC( *sss,
                                        (j + 2) * sizeof(char *) );
 
                                if( *sss == NULL ) {
                                        save[j] = NULL;
-                                       ber_memvfree( save );
+                                       ber_memvfree( (void **) save );
                                        rc = LBER_DEFAULT;
                                        goto breakout;
                                }
@@ -616,7 +616,7 @@ ber_scanf ( BerElement *ber,
                            tag != LBER_DEFAULT && rc != LBER_DEFAULT;
                            tag = ber_next_element( ber, &len, last ) )
                        {
-                               void *save = *bv;
+                               struct berval **save = *bv;
 
                                *bv = (struct berval **) LBER_REALLOC( *bv,
                                        (j + 2) * sizeof(struct berval *) );
@@ -744,7 +744,7 @@ breakout:
                case 'v':       /* sequence of strings */
                        sss = va_arg( ap, char *** );
                        if ( *sss ) {
-                               ber_memvfree( *sss );
+                               ber_memvfree( (void **) *sss );
                                *sss = NULL;
                        }
                        break;