summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/netapi/netapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index 9e309634b4..941e323183 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -253,8 +253,9 @@ NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx,
****************************************************************/
const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx,
- NET_API_STATUS status)
+ NET_API_STATUS status_in)
{
+ NET_API_STATUS status;
struct libnetapi_ctx *tmp_ctx = ctx;
if (!tmp_ctx) {
@@ -268,7 +269,7 @@ const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx,
return tmp_ctx->error_string;
}
- return libnetapi_errstr(status);
+ return libnetapi_errstr(status_in);
}
/****************************************************************