summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-12 14:07:34 +0200
committerVolker Lendecke <vl@samba.org>2008-10-12 14:13:24 +0200
commit3bcb76a92499aca8b209c8a5f07829cd852cbaa0 (patch)
tree9cd5549bfb07fbb52422a04edd2c80d8e2ee9512 /source3
parentdc2e98edc40ff30bd172eecf9e08219b7678df44 (diff)
downloadsamba-3bcb76a92499aca8b209c8a5f07829cd852cbaa0.tar.gz
samba-3bcb76a92499aca8b209c8a5f07829cd852cbaa0.tar.bz2
samba-3bcb76a92499aca8b209c8a5f07829cd852cbaa0.zip
Fix "warning: initialization discards qualifiers from pointer target type"
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smbdes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
index 76779e2d27..8087d66799 100644
--- a/source3/libsmb/smbdes.c
+++ b/source3/libsmb/smbdes.c
@@ -389,7 +389,7 @@ void des_crypt112_16(unsigned char out[16], unsigned char in[16], const unsigned
void SamOEMhash( unsigned char *data, const unsigned char key[16], size_t len)
{
struct arcfour_state arc4_state;
- DATA_BLOB keyblob = { key, 16 };
+ const DATA_BLOB keyblob = data_blob_const(key, 16);
arcfour_init(&arc4_state, &keyblob);
arcfour_crypt_sbox(&arc4_state, data, len);