mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r1018: fix a const and unsigned int problem in ldb
(This used to be commit 3d52ca93731ad67c14ac42f627e3feb1a964b29a)
This commit is contained in:
parent
e06d8e94a9
commit
b553acce4b
@ -168,7 +168,7 @@ 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,
|
||||
char *attr_name, char *str)
|
||||
const char *attr_name, char *str)
|
||||
{
|
||||
struct ldb_val val;
|
||||
|
||||
@ -226,7 +226,7 @@ int ldb_msg_find_int(const struct ldb_message *msg,
|
||||
|
||||
unsigned int ldb_msg_find_uint(const struct ldb_message *msg,
|
||||
const char *attr_name,
|
||||
int default_value)
|
||||
unsigned int default_value)
|
||||
{
|
||||
const struct ldb_val *v = ldb_msg_find_ldb_val(msg, attr_name);
|
||||
if (!v || !v->data) {
|
||||
|
@ -300,7 +300,7 @@ int ldb_msg_find_int(const struct ldb_message *msg,
|
||||
int default_value);
|
||||
unsigned int ldb_msg_find_uint(const struct ldb_message *msg,
|
||||
const char *attr_name,
|
||||
int default_value);
|
||||
unsigned int default_value);
|
||||
double ldb_msg_find_double(const struct ldb_message *msg,
|
||||
const char *attr_name,
|
||||
double default_value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user