mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
libnbt: Apply some const
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
494dc70f69
commit
6f23615956
@ -291,7 +291,9 @@ NTSTATUS nbt_name_status_recv(struct nbt_name_request *req,
|
||||
NTSTATUS nbt_name_status(struct nbt_name_socket *nbtsock,
|
||||
TALLOC_CTX *mem_ctx, struct nbt_name_status *io);
|
||||
|
||||
NTSTATUS nbt_name_dup(TALLOC_CTX *mem_ctx, struct nbt_name *name, struct nbt_name *newname);
|
||||
NTSTATUS nbt_name_dup(TALLOC_CTX *mem_ctx,
|
||||
const struct nbt_name *name,
|
||||
struct nbt_name *newname);
|
||||
NTSTATUS nbt_name_to_blob(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, struct nbt_name *name);
|
||||
NTSTATUS nbt_name_from_blob(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob, struct nbt_name *name);
|
||||
void nbt_choose_called_name(TALLOC_CTX *mem_ctx, struct nbt_name *n, const char *name, int type);
|
||||
|
@ -190,7 +190,9 @@ _PUBLIC_ enum ndr_err_code ndr_push_nbt_name(struct ndr_push *ndr, int ndr_flags
|
||||
/**
|
||||
copy a nbt name structure
|
||||
*/
|
||||
_PUBLIC_ NTSTATUS nbt_name_dup(TALLOC_CTX *mem_ctx, struct nbt_name *name, struct nbt_name *newname)
|
||||
_PUBLIC_ NTSTATUS nbt_name_dup(TALLOC_CTX *mem_ctx,
|
||||
const struct nbt_name *name,
|
||||
struct nbt_name *newname)
|
||||
{
|
||||
*newname = *name;
|
||||
newname->name = talloc_strdup(mem_ctx, newname->name);
|
||||
|
Loading…
Reference in New Issue
Block a user