smbd: Fix a warning
authorVolker Lendecke <vl@samba.org>
Mon, 10 Sep 2018 12:59:14 +0000 (14:59 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 2 Oct 2018 23:07:15 +0000 (01:07 +0200)
gcc complains that the "const" is ignored on function return
types. Right now I'm compiling this file a lot, so silence this
warning :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c

index 919e74c0851664ba1efa4745642c76447eca7921..a97d8d44930379344fd5140ee3ebfe1db006ebe6 100644 (file)
@@ -142,7 +142,7 @@ static TDB_DATA locking_key(const struct file_id *id)
  necessary we can always make this a separate (smaller) cache.
 ******************************************************************/
 
-static const DATA_BLOB memcache_key(const struct file_id *id)
+static DATA_BLOB memcache_key(const struct file_id *id)
 {
        return data_blob_const((const void *)id, sizeof(*id));
 }