mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
r5092: Add a bit more const - moving it further into the LDB layer.
Andrew Bartlett
(This used to be commit ffad9b22be
)
This commit is contained in:
parent
b4055c9908
commit
ea2209e3db
@ -202,11 +202,11 @@ int ldb_msg_add_value(struct ldb_context *ldb,
|
||||
add a string element to a message
|
||||
*/
|
||||
int ldb_msg_add_string(struct ldb_context *ldb, struct ldb_message *msg,
|
||||
const char *attr_name, char *str)
|
||||
const char *attr_name, const char *str)
|
||||
{
|
||||
struct ldb_val val;
|
||||
|
||||
val.data = str;
|
||||
val.data = discard_const_p(char, str);
|
||||
val.length = strlen(str);
|
||||
|
||||
return ldb_msg_add_value(ldb, msg, attr_name, &val);
|
||||
|
@ -258,7 +258,7 @@ int ldb_msg_add_value(struct ldb_context *ldb,
|
||||
const char *attr_name,
|
||||
const struct ldb_val *val);
|
||||
int ldb_msg_add_string(struct ldb_context *ldb, struct ldb_message *msg,
|
||||
const char *attr_name, char *str);
|
||||
const char *attr_name, const char *str);
|
||||
|
||||
/* compare two message elements - return 0 on match */
|
||||
int ldb_msg_element_compare(struct ldb_message_element *el1,
|
||||
|
@ -30,8 +30,8 @@ struct creds_CredentialState {
|
||||
struct netr_Credential client;
|
||||
struct netr_Credential server;
|
||||
uint16_t secure_channel_type;
|
||||
char *computer_name;
|
||||
char *account_name;
|
||||
const char *computer_name;
|
||||
const char *account_name;
|
||||
};
|
||||
|
||||
/* for the timebeing, use the same neg flags as Samba3. */
|
||||
|
Loading…
Reference in New Issue
Block a user