1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r5844: Fix typo. Add cast for bug #2464 reported by jason@ncac.gwu.edu.

Jeremy.
(This used to be commit a4b4766e4294c3a0172beeae7a7698160f4a2632)
This commit is contained in:
Jeremy Allison 2005-03-17 01:19:49 +00:00 committed by Gerald (Jerry) Carter
parent ee804161aa
commit 2aaf23ed64

View File

@ -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);