signedness/type fixes

Original commit message from CVS:
signedness/type fixes
This commit is contained in:
Thomas Vander Stichele 2005-10-15 00:22:02 +00:00
parent 4ba0732136
commit 4a74148bd4
4 changed files with 12 additions and 11 deletions

View file

@ -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;

View file

@ -27,6 +27,7 @@
#include <gst/gstconfig.h>
#include <time.h> /* time_t */
#include <sys/stat.h> /* off_t */
#include <gmodule.h>
#include <gst/gstobject.h>
#include <gst/gstmacros.h>
@ -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 */

View file

@ -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.)

View file

@ -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;
}