From 4a74148bd4d1865d67a03199c30343f128a7fb9e Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 15 Oct 2005 00:22:02 +0000 Subject: [PATCH] signedness/type fixes Original commit message from CVS: signedness/type fixes --- gst/gstelement.c | 2 +- gst/gstplugin.h | 3 ++- gst/gststructure.c | 16 ++++++++-------- gst/gsturi.c | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 8ac048469f..c40c85f66f 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -2325,7 +2325,7 @@ gst_element_save_thyself (GstObject * object, xmlNodePtr parent) GstElementClass *oclass; GParamSpec **specs, *spec; guint nspecs; - gint i; + guint i; GValue value = { 0, }; GstElement *element; diff --git a/gst/gstplugin.h b/gst/gstplugin.h index 40a8baebaf..c24905b811 100644 --- a/gst/gstplugin.h +++ b/gst/gstplugin.h @@ -27,6 +27,7 @@ #include #include /* time_t */ +#include /* off_t */ #include #include #include @@ -146,7 +147,7 @@ struct _GstPlugin { GModule * module; /* contains the module if plugin is loaded */ - size_t file_size; + off_t file_size; time_t file_mtime; gboolean registered; /* TRUE when the registry has seen a filename * that matches the plugin's basename */ diff --git a/gst/gststructure.c b/gst/gststructure.c index 8f5c2dc84a..7a4a9b45b0 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -220,7 +220,7 @@ gst_structure_copy (const GstStructure * structure) { GstStructure *new_structure; GstStructureField *field; - int i; + guint i; g_return_val_if_fail (structure != NULL, NULL); @@ -252,7 +252,7 @@ void gst_structure_free (GstStructure * structure) { GstStructureField *field; - int i; + guint i; g_return_if_fail (structure != NULL); g_return_if_fail (structure->parent_refcount == NULL); @@ -466,7 +466,7 @@ static void gst_structure_set_field (GstStructure * structure, GstStructureField * field) { GstStructureField *f; - int i; + guint i; for (i = 0; i < structure->fields->len; i++) { f = GST_STRUCTURE_FIELD (structure, i); @@ -487,7 +487,7 @@ static GstStructureField * gst_structure_id_get_field (const GstStructure * structure, GQuark field_id) { GstStructureField *field; - int i; + guint i; g_return_val_if_fail (structure != NULL, NULL); @@ -576,7 +576,7 @@ gst_structure_remove_field (GstStructure * structure, const gchar * fieldname) { GstStructureField *field; GQuark id; - int i; + guint i; g_return_if_fail (structure != NULL); g_return_if_fail (fieldname != NULL); @@ -748,7 +748,7 @@ gboolean gst_structure_foreach (const GstStructure * structure, GstStructureForeachFunc func, gpointer user_data) { - int i; + guint i; GstStructureField *field; gboolean ret; @@ -782,7 +782,7 @@ gboolean gst_structure_map_in_place (GstStructure * structure, GstStructureMapFunc func, gpointer user_data) { - int i; + guint i; GstStructureField *field; gboolean ret; @@ -1264,7 +1264,7 @@ gst_structure_to_string (const GstStructure * structure) { GstStructureField *field; GString *s; - int i; + guint i; /* NOTE: This function is potentially called by the debug system, * so any calls to gst_log() (and GST_DEBUG(), GST_LOG(), etc.) diff --git a/gst/gsturi.c b/gst/gsturi.c index 31c47e21fa..4d77d401f3 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -268,7 +268,7 @@ unescape_string (const gchar * escaped_string, const gchar * illegal_characters) } *out = '\0'; - g_assert (out - result <= strlen (escaped_string)); + g_assert ((size_t) (out - result) <= strlen (escaped_string)); return result; }