forked from osmocom/wireshark
(Trivial change) move ensure_contiguous() to reflect call hierarchy
svn path=/trunk/; revision=29382
This commit is contained in:
parent
158827a5e7
commit
e1c5ffd553
|
@ -862,7 +862,20 @@ ensure_contiguous_no_exception(tvbuff_t *tvb, gint offset, gint length,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* ----------------------------- */
|
||||
static const guint8*
|
||||
ensure_contiguous(tvbuff_t *tvb, gint offset, gint length)
|
||||
{
|
||||
int exception;
|
||||
const guint8 *p;
|
||||
|
||||
p = ensure_contiguous_no_exception(tvb, offset, length, &exception);
|
||||
if (p == NULL) {
|
||||
DISSECTOR_ASSERT(exception > 0);
|
||||
THROW(exception);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
static const guint8*
|
||||
fast_ensure_contiguous(tvbuff_t *tvb, gint offset, guint length)
|
||||
{
|
||||
|
@ -892,21 +905,6 @@ fast_ensure_contiguous(tvbuff_t *tvb, gint offset, guint length)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static const guint8*
|
||||
ensure_contiguous(tvbuff_t *tvb, gint offset, gint length)
|
||||
{
|
||||
int exception;
|
||||
const guint8 *p;
|
||||
|
||||
p = ensure_contiguous_no_exception(tvb, offset, length, &exception);
|
||||
if (p == NULL) {
|
||||
DISSECTOR_ASSERT(exception > 0);
|
||||
THROW(exception);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
static const guint8*
|
||||
guint8_find(const guint8* haystack, size_t haystacklen, guint8 needle)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue