r8520: fixed a pile of warnings from the build farm gcc -Wall output on
[ira/wip.git] / source4 / torture / ldap / basic.c
index 69b9017d8a586b29e390c57d748c574a41fc5b34..7dfc81b692e8e4fda6f1e9a809006411f11592e4 100644 (file)
@@ -125,13 +125,13 @@ static BOOL test_search_rootDSE(struct ldap_connection *conn, char **basedn)
                int j;
                for (j=0; j<r->attributes[i].num_values; j++) {
                        DEBUG(1,("\t%s: %d %.*s\n", r->attributes[i].name,
-                                r->attributes[i].values[j].length,
-                                r->attributes[i].values[j].length,
+                                (int)r->attributes[i].values[j].length,
+                                (int)r->attributes[i].values[j].length,
                                 (char *)r->attributes[i].values[j].data));
                        if (!(*basedn) && 
                            strcasecmp("defaultNamingContext",r->attributes[i].name)==0) {
                                *basedn = talloc_asprintf(conn, "%.*s",
-                                                         r->attributes[i].values[j].length,
+                                                         (int)r->attributes[i].values[j].length,
                                                          (char *)r->attributes[i].values[j].data);
                        }
                }