1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-18 00:23:50 +03:00

More pstring elimination.

Jeremy.
This commit is contained in:
Jeremy Allison
2007-11-20 17:18:16 -08:00
parent bac3bb2f6e
commit 15074de938
10 changed files with 257 additions and 136 deletions

View File

@@ -28,7 +28,7 @@
/**
* Dump a prs to a file: from the current location through to the end.
**/
void prs_dump(char *name, int v, prs_struct *ps)
void prs_dump(const char *name, int v, prs_struct *ps)
{
prs_dump_region(name, v, ps, ps->data_offset, ps->buffer_size);
}
@@ -36,7 +36,7 @@ void prs_dump(char *name, int v, prs_struct *ps)
/**
* Dump from the start of the prs to the current location.
**/
void prs_dump_before(char *name, int v, prs_struct *ps)
void prs_dump_before(const char *name, int v, prs_struct *ps)
{
prs_dump_region(name, v, ps, 0, ps->data_offset);
}
@@ -44,7 +44,7 @@ void prs_dump_before(char *name, int v, prs_struct *ps)
/**
* Dump everything from the start of the prs up to the current location.
**/
void prs_dump_region(char *name, int v, prs_struct *ps,
void prs_dump_region(const char *name, int v, prs_struct *ps,
int from_off, int to_off)
{
int fd, i;