1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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:
Andrew Bartlett 2012-02-09 11:13:29 +11:00
parent 3b88c1e605
commit 7824fd5954
2 changed files with 0 additions and 23 deletions

View File

@ -329,28 +329,6 @@ void prs_switch_type(prs_struct *ps, bool 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.
********************************************************************/

View File

@ -72,7 +72,6 @@ bool prs_align(prs_struct *ps);
bool prs_align_uint64(prs_struct *ps);
char *prs_mem_get(prs_struct *ps, uint32 extra_size);
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_uint32(const char *name, prs_struct *ps, int depth, uint32 *data32);
bool prs_uint64(const char *name, prs_struct *ps, int depth, uint64 *data64);