]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/htable.c
Use the command line utility dropdb instead of the psql command
[bacula/bacula] / bacula / src / lib / htable.c
index 1c4c4bf639e511e681a46d677baaa1aa3c843d3e..1ea0f15388c220f689402c003b3da6ea5a102266 100644 (file)
@@ -138,7 +138,7 @@ void htable::stats()
 
 void htable::grow_table()
 {
-   Dmsg1(000, "Grow called old size = %d\n", buckets);
+   Dmsg1(100, "Grow called old size = %d\n", buckets);
    /* Setup a bigger table */
    htable *big = (htable *)malloc(sizeof(htable));
    big->loffset = loffset;
@@ -322,7 +322,7 @@ int main()
 
    jcrtbl->stats();
    printf("Walk the hash table:\n");
-   for (MYJCR *jcr=(MYJCR *)jcrtbl->first(); jcr; jcr=(MYJCR *)jcrtbl->next() ) {
+   foreach_htable (jcr, jcrtbl) {
 //    printf("htable item = %s\n", jcr->key);
       free(jcr->key);
       count++;