mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-registry: Remove unused prs_uint8()
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
This commit is contained in:
parent
3b88c1e605
commit
7824fd5954
@ -329,28 +329,6 @@ void prs_switch_type(prs_struct *ps, bool io)
|
|||||||
ps->io=io;
|
ps->io=io;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************
|
|
||||||
Stream a uint8.
|
|
||||||
********************************************************************/
|
|
||||||
|
|
||||||
bool prs_uint8(const char *name, prs_struct *ps, int depth, uint8 *data8)
|
|
||||||
{
|
|
||||||
char *q = prs_mem_get(ps, 1);
|
|
||||||
if (q == NULL)
|
|
||||||
return False;
|
|
||||||
|
|
||||||
if (UNMARSHALLING(ps))
|
|
||||||
*data8 = CVAL(q,0);
|
|
||||||
else
|
|
||||||
SCVAL(q,0,*data8);
|
|
||||||
|
|
||||||
DEBUGADD(5,("%s%04x %s: %02x\n", tab_depth(5,depth), ps->data_offset, name, *data8));
|
|
||||||
|
|
||||||
ps->data_offset += 1;
|
|
||||||
|
|
||||||
return True;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
Stream a uint16.
|
Stream a uint16.
|
||||||
********************************************************************/
|
********************************************************************/
|
||||||
|
@ -72,7 +72,6 @@ bool prs_align(prs_struct *ps);
|
|||||||
bool prs_align_uint64(prs_struct *ps);
|
bool prs_align_uint64(prs_struct *ps);
|
||||||
char *prs_mem_get(prs_struct *ps, uint32 extra_size);
|
char *prs_mem_get(prs_struct *ps, uint32 extra_size);
|
||||||
void prs_switch_type(prs_struct *ps, bool io);
|
void prs_switch_type(prs_struct *ps, bool io);
|
||||||
bool prs_uint8(const char *name, prs_struct *ps, int depth, uint8 *data8);
|
|
||||||
bool prs_uint16(const char *name, prs_struct *ps, int depth, uint16 *data16);
|
bool prs_uint16(const char *name, prs_struct *ps, int depth, uint16 *data16);
|
||||||
bool prs_uint32(const char *name, prs_struct *ps, int depth, uint32 *data32);
|
bool prs_uint32(const char *name, prs_struct *ps, int depth, uint32 *data32);
|
||||||
bool prs_uint64(const char *name, prs_struct *ps, int depth, uint64 *data64);
|
bool prs_uint64(const char *name, prs_struct *ps, int depth, uint64 *data64);
|
||||||
|
Loading…
Reference in New Issue
Block a user