1
0
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:
Andrew Bartlett 2005-01-29 04:04:38 +00:00 committed by Gerald (Jerry) Carter
parent b4055c9908
commit ea2209e3db
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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,

View File

@ -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. */