aboutsummaryrefslogtreecommitdiffstats
path: root/epan/range.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-17 01:31:36 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-17 01:31:36 +0000
commita053ee960ecb3d93f68537e090d18792bf9be3f2 (patch)
tree5a047ba08d17c9aac823be4131180fa3ad02ecce /epan/range.h
parent01f041efc2587b3d88d163d34792e6c623b17078 (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>. svn path=/trunk/; revision=12323
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);