summaryrefslogtreecommitdiffstats
path: root/source3/lib/netapi/examples/getdc/getdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/netapi/examples/getdc/getdc.c')
-rw-r--r--source3/lib/netapi/examples/getdc/getdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/examples/getdc/getdc.c b/source3/lib/netapi/examples/getdc/getdc.c
index 4f5c5332d57..cdd4d0b3b4f 100644
--- a/source3/lib/netapi/examples/getdc/getdc.c
+++ b/source3/lib/netapi/examples/getdc/getdc.c
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
status = NetGetDCName(argv[1], argv[2], &buffer);
if (status != 0) {
- printf("GetDcName failed with: %s\n", libnetapi_errstr(ctx, status));
+ printf("GetDcName failed with: %s\n", libnetapi_errstr(status));
} else {
printf("%s\n", (char *)buffer);
}