1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00

r19137: that looks nicer:-)

metze
(This used to be commit db40552d94)
This commit is contained in:
Stefan Metzmacher 2006-10-06 15:17:02 +00:00 committed by Gerald (Jerry) Carter
parent 3652a2360f
commit a6e45f0da5
2 changed files with 2 additions and 2 deletions

View File

@ -797,7 +797,7 @@ int ldb_msg_check_string_attribute(const struct ldb_message *msg, const char *na
if (el == NULL)
return 0;
val.data = (uint8_t *)discard_const(value);
val.data = discard_const_p(uint8_t, value);
val.length = strlen(value);
if (ldb_msg_find_val(el, &val))

View File

@ -134,7 +134,7 @@ char *ldb_binary_encode(void *mem_ctx, struct ldb_val val)
char *ldb_binary_encode_string(void *mem_ctx, const char *string)
{
struct ldb_val val;
val.data = (uint8_t *)discard_const(string);
val.data = discard_const_p(uint8_t, string);
val.length = strlen(string);
return ldb_binary_encode(mem_ctx, val);
}