summaryrefslogtreecommitdiff
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
commitc9b3e6c71401efe754c10f7077671f0c1cebdafb (patch)
tree3ea115ed976bd975c5499f006cf1f5bad617818e
parent63731d4a00e7a70b48d0c25677c76ec6b2e04ce1 (diff)
downloadsamba-c9b3e6c71401efe754c10f7077671f0c1cebdafb.tar.gz
Fixed some compile warnings.
-rw-r--r--source/smbd/mangle.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index b9db4b0c2da..a28cfe09319 100644
--- a/source/smbd/mangle.c
+++ b/source/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 ?? */