]> 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 7bd134ca23622425dbe02a248059f15a387d8bc9..1ea0f15388c220f689402c003b3da6ea5a102266 100644 (file)
@@ -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++;