1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

const religion in talloc calls

This commit is contained in:
Andrew Tridgell
-
parent 3f3bb62ba6
commit ea5d285721

View File

@@ -148,7 +148,7 @@ void *talloc_zero(TALLOC_CTX *t, size_t size)
}
/* memdup with a talloc. */
void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size)
void *talloc_memdup(TALLOC_CTX *t, const void *p, size_t size)
{
void *newp = talloc(t,size);
@@ -161,7 +161,7 @@ void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size)
}
/* strdup with a talloc */
char *talloc_strdup(TALLOC_CTX *t, char *p)
char *talloc_strdup(TALLOC_CTX *t, const char *p)
{
return talloc_memdup(t, p, strlen(p) + 1);
}