summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-12-08 02:45:51 +0000
committerTim Potter <tpot@samba.org>2000-12-08 02:45:51 +0000
commit2e79da814da91f9682b73aa1e3285f1be4aa05b0 (patch)
treeef71d364fd8e48dccf1c6843e1a8da582ee014bb /source3
parent269acfe1d2e1776ca5afdc4d4ead20db0b88cacd (diff)
downloadsamba-2e79da814da91f9682b73aa1e3285f1be4aa05b0.tar.gz
samba-2e79da814da91f9682b73aa1e3285f1be4aa05b0.tar.bz2
samba-2e79da814da91f9682b73aa1e3285f1be4aa05b0.zip
Removed compiler warning.
(This used to be commit 6d3bd1d80635d91e9590bcf093662259090ea6da)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/nterr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index f9d717477a..17bb825219 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/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;
}