summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-02-29 12:41:33 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-02-29 12:41:33 +0000
commitb997b0545a437613055e57587dcab420039d1eda (patch)
tree8cf1aef8b6a62b92ea049f457d8e4bccf35e553c /tools
parentc483eb548942ec98a3f40267d7f8c85521ea8a9e (diff)
Correct all relevant warnings found by the sparse semantic code analyzer. This include marking several symbols static...
Original commit message from CVS: * gst/gstconfig.h.in: * libs/gst/base/gstcollectpads.c: (gst_collect_pads_read_buffer): * libs/gst/check/gstcheck.c: (gst_check_log_message_func), (gst_check_log_critical_func), (gst_check_drop_buffers), (gst_check_element_push_buffer_list): * libs/gst/controller/gstcontroller.c: (gst_controller_get), (gst_controller_get_type): * libs/gst/controller/gsthelper.c: (gst_object_control_properties), (gst_object_get_controller), (gst_object_get_control_source): * libs/gst/controller/gstinterpolationcontrolsource.c: (gst_interpolation_control_source_new): * libs/gst/controller/gstlfocontrolsource.c: (gst_lfo_control_source_new): * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_event_from_packet_0_2): * plugins/elements/gstfdsrc.c: * plugins/elements/gstmultiqueue.c: * plugins/elements/gsttee.c: * plugins/elements/gsttypefindelement.c: * plugins/indexers/gstfileindex.c: (_file_index_id_save_xml), (gst_file_index_add_association): * plugins/indexers/gstmemindex.c: * tests/benchmarks/gstpollstress.c: (mess_some_more): * tests/check/elements/queue.c: (setup_queue): * tests/check/gst/gstpipeline.c: * tests/check/libs/collectpads.c: (setup), (teardown), (gst_collect_pads_suite): * tests/examples/adapter/adapter_test.c: * tests/examples/metadata/read-metadata.c: (make_pipeline): * tests/examples/xml/createxml.c: * tests/examples/xml/runxml.c: * tools/gst-inspect.c: * tools/gst-run.c: Correct all relevant warnings found by the sparse semantic code analyzer. This include marking several symbols static, using NULL instead of 0 for pointers, not using variable sized arrays on the stack, moving variable declarations to the beginning of a block and using "foo (void)" instead of "foo ()" for declarations.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-inspect.c2
-rw-r--r--tools/gst-run.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 0c380f6555..ec42c646d6 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -38,7 +38,7 @@ static char *_name = NULL;
static int print_element_info (GstElementFactory * factory,
gboolean print_names);
-void
+static void
n_print (const char *format, ...)
{
va_list args;
diff --git a/tools/gst-run.c b/tools/gst-run.c
index 36445d7ac2..4c6dee35b6 100644
--- a/tools/gst-run.c
+++ b/tools/gst-run.c
@@ -147,7 +147,7 @@ unmangle_libtool (gchar ** dir, gchar ** base)
*
* The returned string is newly allocated.
*/
-gchar *
+static gchar *
get_dir_of_binary (const gchar * binary)
{
gchar *base, *dir;
@@ -192,7 +192,7 @@ get_dir_of_binary (const gchar * binary)
/* Search the given directory for candidate binaries matching the base binary.
* Return a GHashTable of major/minor -> directory pairs
*/
-GHashTable *
+static GHashTable *
get_candidates (const gchar * dir, const gchar * base)
{
GDir *gdir;