diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-17 22:31:34 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-10-30 12:37:33 +0100 |
commit | 230f387312524eb55a79f85fbee08953dbc1f8a5 (patch) | |
tree | f1fb20c25bbc709c4c885f788a734ef62dc97a24 /source4 | |
parent | 3587bb63e21c3f033a17bb493dceb64b05fe85d6 (diff) | |
download | samba-230f387312524eb55a79f85fbee08953dbc1f8a5.tar.gz samba-230f387312524eb55a79f85fbee08953dbc1f8a5.tar.bz2 samba-230f387312524eb55a79f85fbee08953dbc1f8a5.zip |
s4:nbt_server/wins/winsdb - Fix "const" warning
Diffstat (limited to 'source4')
-rw-r--r-- | source4/nbt_server/wins/winsdb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/nbt_server/wins/winsdb.c b/source4/nbt_server/wins/winsdb.c index 56ba146be1..fb3dcbf906 100644 --- a/source4/nbt_server/wins/winsdb.c +++ b/source4/nbt_server/wins/winsdb.c @@ -319,7 +319,6 @@ failed: static int ldb_msg_add_winsdb_addr(struct ldb_message *msg, struct winsdb_record *rec, const char *attr_name, struct winsdb_addr *addr) { - struct ldb_val val; const char *str; if (rec->is_static) { @@ -336,10 +335,7 @@ static int ldb_msg_add_winsdb_addr(struct ldb_message *msg, struct winsdb_record if (!str) return LDB_ERR_OPERATIONS_ERROR; } - val.data = discard_const_p(uint8_t, str); - val.length = strlen(str); - - return ldb_msg_add_value(msg, attr_name, &val, NULL); + return ldb_msg_add_string(msg, attr_name, str); } struct winsdb_addr **winsdb_addr_list_make(TALLOC_CTX *mem_ctx) |