1
0
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:
Andrew Tridgell 2004-06-05 01:30:27 +00:00 committed by Gerald (Jerry) Carter
parent e06d8e94a9
commit b553acce4b
2 changed files with 3 additions and 3 deletions

View File

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

View File

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