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:
parent
1783fe3443
commit
3c4263e758
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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[])
|
||||
|
@ -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[])
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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[])
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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[])
|
||||
|
@ -15,7 +15,6 @@
|
||||
#undef fcntl
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <err.h>
|
||||
#include "external-agent.h"
|
||||
#include "logging.h"
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "../common/hash.c"
|
||||
#include "tap-interface.h"
|
||||
#include <stdlib.h>
|
||||
#include <err.h>
|
||||
#include "logging.h"
|
||||
|
||||
#undef fcntl
|
||||
|
@ -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[])
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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[])
|
||||
|
@ -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, ...)
|
||||
{
|
||||
|
@ -12,7 +12,6 @@
|
||||
#include "../common/summary.c"
|
||||
#include "tap-interface.h"
|
||||
#include <stdlib.h>
|
||||
#include <err.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -15,7 +15,6 @@
|
||||
#undef fcntl_with_lockcheck
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <err.h>
|
||||
#include "external-agent.h"
|
||||
#include "logging.h"
|
||||
|
||||
|
@ -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, ...)
|
||||
{
|
||||
|
@ -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[])
|
||||
|
@ -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[])
|
||||
|
Loading…
Reference in New Issue
Block a user