diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 15:07:44 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 09:22:28 +0200 |
commit | 3c4263e7580143c69225729f5b67f09c00add2fd (patch) | |
tree | 4ed548450a427b62007c7201c163f9ccf60bc606 /lib/tdb/test/external-agent.c | |
parent | 1783fe34433f9bb4b939de3231a7c296390ec426 (diff) | |
download | samba-3c4263e7580143c69225729f5b67f09c00add2fd.tar.gz samba-3c4263e7580143c69225729f5b67f09c00add2fd.tar.bz2 samba-3c4263e7580143c69225729f5b67f09c00add2fd.zip |
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
Diffstat (limited to 'lib/tdb/test/external-agent.c')
-rw-r--r-- | lib/tdb/test/external-agent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tdb/test/external-agent.c b/lib/tdb/test/external-agent.c index d3fe8913fa..139de76f9a 100644 --- a/lib/tdb/test/external-agent.c +++ b/lib/tdb/test/external-agent.c @@ -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); } |