summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples/netdomjoin/netdomjoin.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-11 15:28:24 +0100
committerGünther Deschner <gd@samba.org>2008-01-11 15:28:24 +0100
commitefcf285e27e3f52cd6188f678d52977584c78972 (patch)
treef7fc2c1169f2acf657eccab8ba1d2edf2094777b /source3/lib/netapi/examples/netdomjoin/netdomjoin.c
parent026b2a8d0a95112dc75e5b909b57580d7d032951 (diff)
downloadsamba-efcf285e27e3f52cd6188f678d52977584c78972.tar.gz
samba-efcf285e27e3f52cd6188f678d52977584c78972.tar.bz2
samba-efcf285e27e3f52cd6188f678d52977584c78972.zip
Fix libnetapi error string callers.
Guenther (This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)
Diffstat (limited to 'source3/lib/netapi/examples/netdomjoin/netdomjoin.c')
-rw-r--r--source3/lib/netapi/examples/netdomjoin/netdomjoin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin/netdomjoin.c b/source3/lib/netapi/examples/netdomjoin/netdomjoin.c
index a0ac0b1e56..29f66a17a2 100644
--- a/source3/lib/netapi/examples/netdomjoin/netdomjoin.c
+++ b/source3/lib/netapi/examples/netdomjoin/netdomjoin.c
@@ -105,9 +105,9 @@ int main(int argc, char **argv)
join_flags);
if (status != 0) {
const char *errstr = NULL;
- errstr = libnetapi_get_error_string(ctx);
+ errstr = libnetapi_get_error_string(ctx, status);
if (!errstr) {
- errstr = libnetapi_errstr(ctx, status);
+ errstr = libnetapi_errstr(status);
}
printf("Join failed with: %s\n", errstr);
} else {