aboutsummaryrefslogtreecommitdiffstats
path: root/epan/range.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-10-17 01:31:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-10-17 01:31:36 +0000
commit0d8dbc8baba885aa6ef4f2e8d7f7f2650db334a3 (patch)
tree5a047ba08d17c9aac823be4131180fa3ad02ecce /epan/range.h
parent604f6a4c14c963e42ccd7cfe519434515bf63c27 (diff)
Have "range_convert_range()" dynamically allocate a string large enough
to hold the representation of the range, rather than imposing a fixed-size limit on the string. Check for overflow in "strtoul()" - and use "strtoul()" rather than "strtol()" for range members. Clean up indentation. Get rid of an unnecessary include in <epan/range.h>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12323 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/range.h')
-rw-r--r--epan/range.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/range.h b/epan/range.h
index de88cfb77a..f3ec4c2c3d 100644
--- a/epan/range.h
+++ b/epan/range.h
@@ -30,10 +30,6 @@
#include <glib.h>
-#include <epan/frame_data.h>
-
-#define MAXRANGESTRING 255
-
typedef struct range_admin_tag {
guint32 low;
guint32 high;
@@ -65,7 +61,7 @@ extern gboolean ranges_are_equal(range_t *a, range_t *b);
extern void range_foreach(range_t *range, void (*callback)(guint32 val));
-extern char *range_convert_range(range_t *range, char *string);
+extern char *range_convert_range(range_t *range);
extern range_t *range_copy(range_t *src);