summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-09 19:51:44 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-09 19:51:44 +0000
commitac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b (patch)
tree53311747117633d1037ecd343a8de1659edbe856 /source/rpc_parse/parse_misc.c
parentddd350198202d6a1d2c715b3dce7db3a5d76a63a (diff)
downloadsamba-ac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b.tar.gz
samba-ac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b.tar.xz
samba-ac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b.zip
removal of the use of unistrn2 function: replace it with unistr2_to_str
which is more appropriate.
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r--source/rpc_parse/parse_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c
index e1a7d3c6a59..bf3bba1249d 100644
--- a/source/rpc_parse/parse_misc.c
+++ b/source/rpc_parse/parse_misc.c
@@ -563,7 +563,7 @@ void smb_io_string2(char *desc, STRING2 *str2, uint32 buffer, prs_struct *ps, i
/*******************************************************************
creates a UNISTR2 structure.
********************************************************************/
-void make_unistr2(UNISTR2 *str, char *buf, int len)
+void make_unistr2(UNISTR2 *str, const char *buf, int len)
{
ZERO_STRUCTP(str);
@@ -573,7 +573,7 @@ void make_unistr2(UNISTR2 *str, char *buf, int len)
str->uni_str_len = len;
/* store the string (null-terminated 8 bit chars into 16 bit chars) */
- struni2((char *)(str->buffer), buf);
+ struni2((char*)(str->buffer), buf);
}
/*******************************************************************