[PATCH] smbd: Fix compile warning in dmapi.c

Christof Schmitt cs at samba.org
Thu May 1 15:53:08 MDT 2014


>From 8d8372f3393a82604263a1fad8f00263e7a6d0b9 Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Thu, 1 May 2014 13:50:19 -0700
Subject: [PATCH] smbd: Fix compile warning in dmapi.c

Signed-off-by: Christof Schmitt <cs at samba.org>
---
 source3/smbd/dmapi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source3/smbd/dmapi.c b/source3/smbd/dmapi.c
index 8e80a58..8c93873 100644
--- a/source3/smbd/dmapi.c
+++ b/source3/smbd/dmapi.c
@@ -277,7 +277,7 @@ uint32 dmapi_file_flags(const char * const path)
 		return 0;
 	}
 
-	dmapi_session = *(dm_sessid_t *)dmapi_session_ptr;
+	dmapi_session = *(const dm_sessid_t *)dmapi_session_ptr;
 	if (dmapi_session == DM_NO_SESSION) {
 		return 0;
 	}
-- 
1.7.1



More information about the samba-technical mailing list