summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-05 00:42:33 +0000
committerTim Potter <tpot@samba.org>2001-11-05 00:42:33 +0000
commitc159d0f47d05b1d1b1236e7d07dcf5423b60d66f (patch)
treef6f58d65a729aeac8d0c4610347ec361ffdfd0fe /source3
parent93fb9f76e2a78d131901c4f11c4a6ed30a4afa9d (diff)
downloadsamba-c159d0f47d05b1d1b1236e7d07dcf5423b60d66f.tar.gz
samba-c159d0f47d05b1d1b1236e7d07dcf5423b60d66f.tar.bz2
samba-c159d0f47d05b1d1b1236e7d07dcf5423b60d66f.zip
Fixed compiler warnings.
(This used to be commit 54e40b270208774ed71eff32f3c3b1d3b86b5aca)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/mangle.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index cf2964790e..aa5c49c126 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -156,7 +156,6 @@ smb_ucs2_t *unmangle(const smb_ucs2_t *mangled)
fstring mufname;
smb_ucs2_t *pref, *ext, *retstr;
size_t long_len, ext_len, muf_len;
- BOOL ret;
if (strlen_w(mangled) > 12) return NULL;
if (!strchr_w(mangled, UCS2_CHAR('~'))) return NULL;
@@ -272,7 +271,7 @@ smb_ucs2_t *mangle(const smb_ucs2_t *unmangled)
if (!data.dptr) /* not found */
{
smb_ucs2_t temp[9];
- size_t len, n, c, pos;
+ size_t c, pos;
if (tdb_error(mangle_tdb) != TDB_ERR_NOEXIST)
{
@@ -596,7 +595,7 @@ done:
NTSTATUS is_8_3_w(const smb_ucs2_t *fname)
{
- smb_ucs2_t *pref = 0, *ext = 0, *p;
+ smb_ucs2_t *pref = 0, *ext = 0;
size_t plen;
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;