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

tdb: don't use err.h in tests.

It's not portable.  While we could use ccan/err, it seems overkill since
we actually only use it in one test (I obviously cut & paste the #include).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Fri Jun 22 09:22:28 CEST 2012 on sn-devel-104
This commit is contained in:
Rusty Russell 2012-06-22 15:07:44 +09:30
parent 1783fe3443
commit 3c4263e758
21 changed files with 1 additions and 22 deletions

View File

@ -4,7 +4,6 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <err.h>
#include <fcntl.h>
#include <stdlib.h>
#include <limits.h>
@ -138,7 +137,7 @@ struct agent *prepare_external_agent(void)
result = do_operation(name[0], name+1);
if (write(response[1], &result, sizeof(result))
!= sizeof(result))
err(1, "Writing response");
abort();
}
exit(0);
}

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
static int tdb_expand_file_sparse(struct tdb_context *tdb,

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
static int check(TDB_DATA key, TDB_DATA data, void *private)

View File

@ -23,7 +23,6 @@ static int ftruncate_check(int fd, off_t length);
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include <err.h>
#include <setjmp.h>
#include "external-agent.h"
#include "logging.h"

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
static unsigned int tdb_dumb_hash(TDB_DATA *key)
{

View File

@ -12,7 +12,6 @@
#include "tap-interface.h"
#include <stdlib.h>
#include <stdbool.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -15,7 +15,6 @@
#undef fcntl
#include <stdlib.h>
#include <stdbool.h>
#include <err.h>
#include "external-agent.h"
#include "logging.h"

View File

@ -15,7 +15,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
#undef fcntl

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -24,7 +24,6 @@ static int ftruncate_check(int fd, off_t length);
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include <err.h>
#include "external-agent.h"
#include "logging.h"

View File

@ -13,7 +13,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
static void log_fn(struct tdb_context *tdb, enum tdb_debug_level level, const char *fmt, ...)
{

View File

@ -12,7 +12,6 @@
#include "../common/summary.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
int main(int argc, char *argv[])
{

View File

@ -39,7 +39,6 @@ static inline int fake_fdatasync(int fd)
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
static void write_record(struct tdb_context *tdb, size_t extra_len,

View File

@ -15,7 +15,6 @@
#undef fcntl_with_lockcheck
#include <stdlib.h>
#include <stdbool.h>
#include <err.h>
#include "external-agent.h"
#include "logging.h"

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
static void log_fn(struct tdb_context *tdb, enum tdb_debug_level level, const char *fmt, ...)
{

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])

View File

@ -11,7 +11,6 @@
#include "../common/hash.c"
#include "tap-interface.h"
#include <stdlib.h>
#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])