aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-18 12:35:36 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-04-18 12:35:36 +0000
commit68ec58d385e313d0c85f36cc94e76d73f6d2af2c (patch)
tree31e6024ab3eb3e03c40c324df6650fa14f3230ac /epan/tvbuff.c
parent658fc3cb04f713eb4463bbc653ce360af487c3ea (diff)
Fix some: 'cast discards qualifiers from pointer target type' warnings
- Add const qualifier - Remove some strange casts svn path=/trunk/; revision=42131
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index c6b9d694ce..2aa6f5f49f 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -2835,7 +2835,7 @@ tvb_find_line_end(tvbuff_t *tvb, const gint offset, int len, gint *next_offset,
/*
* Look either for a CR or an LF.
*/
- eol_offset = tvb_pbrk_guint8(tvb, offset, len, (const guint8 *)"\r\n", &found_needle);
+ eol_offset = tvb_pbrk_guint8(tvb, offset, len, "\r\n", &found_needle);
if (eol_offset == -1) {
/*
* No CR or LF - line is presumably continued in next packet.
@@ -2964,8 +2964,7 @@ tvb_find_line_end_unquoted(tvbuff_t *tvb, const gint offset, int len, gint *next
/*
* Look either for a CR, an LF, or a '"'.
*/
- char_offset = tvb_pbrk_guint8(tvb, cur_offset, len,
- (const guint8 *)"\r\n\"", &c);
+ char_offset = tvb_pbrk_guint8(tvb, cur_offset, len, "\r\n\"", &c);
}
if (char_offset == -1) {
/*