]> git.sur5r.net Git - openldap/commitdiff
Remove lint
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 22 Aug 1999 03:35:10 +0000 (03:35 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 22 Aug 1999 03:35:10 +0000 (03:35 +0000)
libraries/libldif/line64.c

index cd84e3d26b9719d93ba7b02968774f6421981226..f46007439f07911e60e6f75cd6f9e5ac8a9f7dbf 100644 (file)
@@ -341,11 +341,12 @@ ldif_sput(
                        len++;
                }
 
+       }
 #ifdef LDAP_DEBUG
-       else {
+       else {
                assert( type == LDIF_PUT_COMMENT );
-#endif
        }
+#endif
 
        switch( type ) {
        case LDIF_PUT_NOVALUE:
@@ -552,7 +553,7 @@ ldif_read_record(
        char        **bufp,     /* ptr to malloced output buffer           */
        int         *buflenp )  /* ptr to length of *bufp                  */
 {
-       char        linebuf[BUFSIZ], *line;
+       char        linebuf[BUFSIZ], *line, *nbufp;
        ber_len_t   lcur = 0, len, linesize;
        int         last_ch = '\n', found_entry = 0, stop;
 
@@ -588,7 +589,8 @@ ldif_read_record(
                }
 
                if ( *buflenp - lcur <= len ) {
-                       char *nbufp = ber_memrealloc( *bufp, *buflenp += len + BUFSIZ );
+                       *buflenp += len + BUFSIZ;
+                       nbufp = ber_memrealloc( *bufp, *buflenp );
                        if( nbufp == NULL ) {
                                return 0;
                        }