diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-04 15:30:01 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-05-06 07:51:24 +0200 |
commit | 344eb08ee4e444c1fc1beac26e50c6a85b942885 (patch) | |
tree | 858b257029ba787fea480ce3e724c3f521bf9817 /libcli | |
parent | c83aed2568761adda5f4f09e044788557767347e (diff) | |
download | samba-344eb08ee4e444c1fc1beac26e50c6a85b942885.tar.gz samba-344eb08ee4e444c1fc1beac26e50c6a85b942885.tar.xz samba-344eb08ee4e444c1fc1beac26e50c6a85b942885.zip |
nterr: Add mem_ctx for return string from get_nt_error_c_code()
It is clearer to avoid the implicit return on talloc_tos()
Andrew Bartlett
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/util/ntstatus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/util/ntstatus.h b/libcli/util/ntstatus.h index 3e7c629695..d53f4bbc52 100644 --- a/libcli/util/ntstatus.h +++ b/libcli/util/ntstatus.h @@ -641,7 +641,7 @@ const char *get_friendly_nt_error_msg(NTSTATUS nt_code); /***************************************************************************** returns an NT_STATUS constant as a string for inclusion in autogen C code *****************************************************************************/ -const char *get_nt_error_c_code(NTSTATUS nt_code); +const char *get_nt_error_c_code(void *mem_ctx, NTSTATUS nt_code); /***************************************************************************** returns the NT_STATUS constant matching the string supplied (as an NTSTATUS) |