r5844: Fix typo. Add cast for bug #2464 reported by jason@ncac.gwu.edu.
authorJeremy Allison <jra@samba.org>
Thu, 17 Mar 2005 01:19:49 +0000 (01:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:05 +0000 (10:56 -0500)
Jeremy.
(This used to be commit a4b4766e4294c3a0172beeae7a7698160f4a2632)

source3/smbd/trans2.c

index 7137c4b5f5a81a732ca8e7e86808369becc59989..05ff7d6785dce76c86c3a4d72cc0c9b0f6919221 100644 (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);