diff options
author | Tim Potter <tpot@samba.org> | 2000-12-08 02:45:51 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-08 02:45:51 +0000 |
commit | 6d3bd1d80635d91e9590bcf093662259090ea6da (patch) | |
tree | 13aabd34149c753164b98e647899800c107d1ebb | |
parent | 7055fa0bc43f6e2b3f04b8901fccea80d59bf490 (diff) | |
download | samba-6d3bd1d80635d91e9590bcf093662259090ea6da.tar.gz samba-6d3bd1d80635d91e9590bcf093662259090ea6da.tar.xz samba-6d3bd1d80635d91e9590bcf093662259090ea6da.zip |
Removed compiler warning.
-rw-r--r-- | source/libsmb/nterr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c index f9d717477a0..17bb825219f 100644 --- a/source/libsmb/nterr.c +++ b/source/libsmb/nterr.c @@ -540,9 +540,10 @@ BOOL get_safe_nt_error_msg(uint32 nt_code,char *msg, size_t len) /***************************************************************************** returns an NT error message. not amazingly helpful, but better than a number. *****************************************************************************/ -const char *get_nt_error_msg(uint32 nt_code) +char *get_nt_error_msg(uint32 nt_code) { static pstring msg; + get_safe_nt_error_msg(nt_code, msg, sizeof(msg)); return msg; } |