summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-17 01:19:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:05 -0500
commit2aaf23ed64f93056655e78f1601254058ee7a6e0 (patch)
treead33f46745e97cad8cd84f9f36b4585d86de777e /source3/smbd
parentee804161aae672a1e46d46bcbbc49fd453616bb7 (diff)
downloadsamba-2aaf23ed64f93056655e78f1601254058ee7a6e0.tar.gz
samba-2aaf23ed64f93056655e78f1601254058ee7a6e0.tar.bz2
samba-2aaf23ed64f93056655e78f1601254058ee7a6e0.zip
r5844: Fix typo. Add cast for bug #2464 reported by jason@ncac.gwu.edu.
Jeremy. (This used to be commit a4b4766e4294c3a0172beeae7a7698160f4a2632)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 7137c4b5f5..05ff7d6785 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -143,7 +143,7 @@ static BOOL get_ea_value(TALLOC_CTX *mem_ctx, connection_struct *conn, files_str
} else {
pea->name = ea_name;
}
- pea->value.data = val;
+ pea->value.data = (unsigned char *)val;
pea->value.length = (size_t)sizeret;
return True;
}
@@ -1492,7 +1492,7 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n",
if(numentries == 0) {
dptr_close(&dptr_num);
- if (protocol < PROTOCOL_NT1) {
+ if (Protocol < PROTOCOL_NT1) {
return ERROR_DOS(ERRDOS,ERRnofiles);
} else {
return ERROR_BOTH(NT_STATUS_NO_SUCH_FILE,ERRDOS,ERRbadfile);