1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

tests: Do not use err() to support AIX

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 1734562a7b3512853b9e0232880c42d50c1c2e4c)
This commit is contained in:
Amitay Isaacs 2013-05-23 23:44:45 -05:00
parent 4069ccf22f
commit 0add37aca7

View File

@ -22,7 +22,6 @@
#include "system/filesys.h"
#include "popt.h"
#include <poll.h>
#include <err.h>
#include "ctdb.h"
#define TESTKEY "testkey"
@ -78,7 +77,8 @@ static void fetch_lock_once(struct ctdb_connection *ctdb, struct ctdb_db *ctdb_d
exit(10);
}
if (ctdb_service(ctdb, pfd.revents) < 0) {
err(1, "Failed to service");
printf("Failed to service\n");
exit(10);
}
}
}
@ -120,8 +120,10 @@ int main(int argc, const char *argv[])
ctdb = ctdb_connect("/tmp/ctdb.socket",
ctdb_log_file, stderr);
if (!ctdb)
err(1, "Connecting to /tmp/ctdb.socket");
if (!ctdb) {
printf("Connecting to /tmp/ctdb.socket\n");
exit(1);
}
/* attach to a specific database */
ctdb_db = ctdb_attachdb(ctdb, "test.tdb", false, 0);