#include "notmuch-client.h"
-void status_update_cb (const char *msg);
-
-void
-status_update_cb (const char *msg)
+static void
+status_update_cb (const char *msg, unused (void *closure))
{
printf("%s\n", msg);
}
notmuch_status_t ret;
printf ("Compacting database...\n");
- ret = notmuch_database_compact (path, backup_path, status_update_cb);
+ ret = notmuch_database_compact (path, backup_path, status_update_cb, NULL);
if (ret) {
fprintf (stderr, "Compaction failed: %s\n", notmuch_status_to_string(ret));
} else {