*/
#include "includes.h"
-#include "lib/events/events.h"
+#include "lib/tevent/tevent.h"
#include "system/filesys.h"
#include "popt.h"
#include "cmdline.h"
ctdb = ctdb_cmdline_client(ev);
+ if (ctdb == NULL) {
+ printf("failed to connect to ctdb deamon.\n");
+ exit(1);
+ }
+
/* attach to a specific database */
ctdb_db = ctdb_attach(ctdb, "test.tdb", false, 0);
if (!ctdb_db) {