summaryrefslogtreecommitdiffstats
path: root/source3/smbd/mangle.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-10 01:01:15 +0000
committerTim Potter <tpot@samba.org>2001-10-10 01:01:15 +0000
commit89731dce4a84e840b384fc4c5d21e3f10cfb8d39 (patch)
treeb490abd3529b89110a4a02f37d246bccd7022226 /source3/smbd/mangle.c
parentf3f2744e9cf9fde94a75ba3c6c6ffd02434375d1 (diff)
downloadsamba-89731dce4a84e840b384fc4c5d21e3f10cfb8d39.tar.gz
samba-89731dce4a84e840b384fc4c5d21e3f10cfb8d39.tar.xz
samba-89731dce4a84e840b384fc4c5d21e3f10cfb8d39.zip
Fixed some compile warnings.
(This used to be commit c9b3e6c71401efe754c10f7077671f0c1cebdafb)
Diffstat (limited to 'source3/smbd/mangle.c')
-rw-r--r--source3/smbd/mangle.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index b9db4b0c2da..a28cfe09319 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -1033,7 +1033,6 @@ static int dos_to_ucs2(void *dest, const char *src, int dest_len)
{
int len=0;
int src_len = strlen(src) + 1;
- pstring tmpbuf;
/* treat a pstring as "unlimited" length */
if (dest_len == -1) {
@@ -1067,7 +1066,7 @@ static int ucs2_to_dos(char *dest, const smb_ucs2_t *src, int dest_len)
/* trasform a ucs2 string in a dos charset string that contain only valid chars for 8.3 filenames */
static int ucs2_to_dos83(char *dest, const smb_ucs2_t *src, int dest_len)
{
- int src_len, u2s_len, ret;
+ int src_len, ret;
smb_ucs2_t *u2s;
u2s = (smb_ucs2_t *)malloc((strlen_w(src) + 1) * sizeof(smb_ucs2_t));
@@ -1112,7 +1111,7 @@ static BOOL mangle_get_prefix(const smb_ucs2_t *ucs2_string, smb_ucs2_t **prefix
DEBUG(0,("mangle_get_prefix: out of memory!\n"));
return False;
}
- if (p = strrchr_wa(*prefix, '.'))
+ if ((p = strrchr_wa(*prefix, '.')))
{
p++;
str_len = ucs2_to_dos83(ext, p, sizeof(ext));
@@ -1221,7 +1220,6 @@ smb_ucs2_t *_mangle(const smb_ucs2_t *unmangled)
smb_ucs2_t *um, *ext, *p = NULL;
smb_ucs2_t temp[9];
size_t pref_len, ext_len, ud83_len;
- size_t um_len;
uint32 n, c, pos;
/* TODO: if it is a path return a failure ?? */