aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2006-03-10 14:14:39 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2006-03-10 14:14:39 +0000
commit082627bdb52f5debc41829b6a31b0fd8ac2c2188 (patch)
treee7f0f57f5b9313d39e303d9a0b9541934888359c /epan/ftypes
parentbb39c4f7a63497c5c7d39e9462b9472859a03310 (diff)
few warnings from GUID handling avoided
svn path=/trunk/; revision=17568
Diffstat (limited to 'epan/ftypes')
-rw-r--r--epan/ftypes/ftype-guid.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/epan/ftypes/ftype-guid.c b/epan/ftypes/ftype-guid.c
index 6f229ae81e..ded271e131 100644
--- a/epan/ftypes/ftype-guid.c
+++ b/epan/ftypes/ftype-guid.c
@@ -25,6 +25,7 @@
#endif
#include <string.h>
+#include <ctype.h>
#include <ftypes-int.h>
#include <epan/guid-utils.h>
@@ -32,9 +33,9 @@
#define GUID_LEN 16
static void
-set_guid(fvalue_t *fv, e_guid_t *value)
+guid_fvalue_set(fvalue_t *fv, gpointer value, gboolean already_copied)
{
- fv->value.guid = *value;
+ fv->value.guid = *(e_guid_t*)value;
}
static gpointer
@@ -87,7 +88,7 @@ get_guid(char *s, e_guid_t *guid)
}
static gboolean
-guid_from_unparsed(fvalue_t *fv, char *s, gboolean allow_partial_value, LogFunc logfunc)
+guid_from_unparsed(fvalue_t *fv, char *s, gboolean allow_partial_value _U_, LogFunc logfunc)
{
e_guid_t guid;
@@ -96,7 +97,7 @@ guid_from_unparsed(fvalue_t *fv, char *s, gboolean allow_partial_value, LogFunc
return FALSE;
}
- set_guid(fv, &guid);
+ fv->value.guid = guid;
return TRUE;
}
@@ -139,7 +140,7 @@ ftype_register_guid(void)
guid_to_repr, /* val_to_string_repr */
guid_repr_len, /* len_string_repr */
- set_guid, /* set_value */
+ guid_fvalue_set, /* set_value */
NULL, /* set_value_integer */
NULL, /* set_value_integer64 */
NULL, /* set_value_floating */