summaryrefslogtreecommitdiff
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-07-10 18:25:24 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-07-10 18:25:24 +0000
commitb4d8a3727f68d8a4ac0696ea11ea06903d0e6c45 (patch)
treeb87ce263137cba30fe314063034a5862b1fc994b /epan/tvbuff.c
parentf3ed13c22ea9a73cad6f65488eacc59770197b0c (diff)
downloadwireshark-b4d8a3727f68d8a4ac0696ea11ea06903d0e6c45.tar.gz
Fix previous commit. Devel env with -w in CFLAGS is not so good idea...
svn path=/trunk/; revision=50487
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index a4f9d2fcf5..4436e3090a 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -858,7 +858,7 @@ offset_from_real_beginning(const tvbuff_t *tvb, const guint counter)
}
static guint
-real_offset(const tvbuff_t *tvb, const guint counter)
+real_offset(const tvbuff_t *tvb _U_, const guint counter)
{
return counter;
}
@@ -886,7 +886,7 @@ tvb_offset_from_real_beginning(const tvbuff_t *tvb)
}
static const guint8*
-composite_get_ptr(tvbuff_t *tvb, const guint abs_offset, const guint abs_length)
+composite_get_ptr(tvbuff_t *tvb, guint abs_offset, guint abs_length)
{
guint i, num_members;
tvb_comp_t *composite;
@@ -954,7 +954,7 @@ ensure_contiguous_no_exception(tvbuff_t *tvb, const gint offset, const gint leng
}
static const guint8 *
-subset_get_ptr(tvbuff_t *tvb, const guint abs_offset, const guint abs_length)
+subset_get_ptr(tvbuff_t *tvb, guint abs_offset, guint abs_length)
{
return ensure_contiguous_no_exception(tvb->tvbuffs.subset.tvb, abs_offset - tvb->tvbuffs.subset.offset, abs_length, NULL);
}
@@ -1034,7 +1034,7 @@ guint8_pbrk(const guint8* haystack, size_t haystacklen, const guint8 *needles, g
/************** ACCESSORS **************/
static void *
-composite_memcpy(tvbuff_t *tvb, void* _target, guint abs_offset, size_t abs_length)
+composite_memcpy(tvbuff_t *tvb, void* _target, guint abs_offset, guint abs_length)
{
guint8 *target = _target;
@@ -1096,7 +1096,7 @@ composite_memcpy(tvbuff_t *tvb, void* _target, guint abs_offset, size_t abs_leng
}
static void *
-subset_memcpy(tvbuff_t *tvb, void *target, const guint abs_offset, const guint abs_length)
+subset_memcpy(tvbuff_t *tvb, void *target, guint abs_offset, guint abs_length)
{
return tvb_memcpy(tvb->tvbuffs.subset.tvb, target, abs_offset - tvb->tvbuffs.subset.offset, abs_length);
}
@@ -2008,7 +2008,7 @@ tvb_pbrk_guint8(tvbuff_t *tvb, const gint offset, const gint maxlength, const gu
}
static gint
-subset_pbrk_guint8(tvbuff_t *tvb, const guint abs_offset, const guint limit, const guint8 *needles, guchar *found_needle)
+subset_pbrk_guint8(tvbuff_t *tvb, guint abs_offset, guint limit, const guint8 *needles, guchar *found_needle)
{
return tvb_pbrk_guint8(tvb->tvbuffs.subset.tvb, abs_offset - tvb->tvbuffs.subset.offset, limit, needles, found_needle);
}