]> git.sur5r.net Git - openldap/commitdiff
(blind) fix type format
authorPierangelo Masarati <ando@openldap.org>
Mon, 18 Dec 2006 08:21:06 +0000 (08:21 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 18 Dec 2006 08:21:06 +0000 (08:21 +0000)
clients/tools/ldapmodify.c

index 608400c3c0fd639591ebc39240f1a9956bcb3317..1275c95432951f50a1cebc381bf23e04be013cc0 100644 (file)
@@ -453,7 +453,7 @@ process_ldif_rec( char *rbuf, int linenum )
                        continue;
                }
        
-               if ( rc = ldif_parse_line2( line, btype+i, vals+i, &freev ) < 0 ) {
+               if ( ( rc = ldif_parse_line2( line, btype+i, vals+i, &freev ) ) < 0 ) {
                        fprintf( stderr, _("%s: invalid format (line %d) entry: \"%s\"\n"),
                                prog, linenum+i, dn == NULL ? "" : dn );
                        rc = LDAP_PARAM_ERROR;
@@ -685,7 +685,7 @@ short_input:
                                fprintf( stderr, _("%s: attributeDescription \"%s\":"
                                        " (possible missing newline"
                                                " after line %d, entry \"%s\"?)\n"),
-                                       prog, btype+i, linenum+i - 1, dn );
+                                       prog, btype[i].bv_val, linenum+i - 1, dn );
                        }
                        if ( BVICMP(btype+i,&bv)) {
                                bvl[k++] = NULL;