summaryrefslogtreecommitdiff
path: root/src/sink_input.c
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-15 02:05:02 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-15 02:05:02 +0200
commite084dd44550567aaf5e67a3128a16a4cd59ea744 (patch)
tree1191904ecdec81a811d59b660b6775a7bfeadb58 /src/sink_input.c
parentc0aa6a50753ab4bfbe7e1f1fe7e823d65453279a (diff)
downloadpa-sink-ctl-e084dd44550567aaf5e67a3128a16a4cd59ea744.tar.gz
pa-sink-ctl-e084dd44550567aaf5e67a3128a16a4cd59ea744.tar.bz2
pa-sink-ctl-e084dd44550567aaf5e67a3128a16a4cd59ea744.zip
syntax cleanup
Diffstat (limited to 'src/sink_input.c')
-rw-r--r--src/sink_input.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sink_input.c b/src/sink_input.c
index ae5ad83..3d0c1cd 100644
--- a/src/sink_input.c
+++ b/src/sink_input.c
@@ -7,19 +7,21 @@
#include "sink_input.h"
-GArray *sink_input_list_alloc(void) {
+GArray *sink_input_list_alloc(void)
+{
return g_array_sized_new(false, false, sizeof(sink_input_info), 8);
}
-static void sink_input_clear(sink_input_info* sink_input) {
+static void sink_input_clear(sink_input_info* sink_input)
+{
if (sink_input->name != NULL)
free(sink_input->name);
-
if (sink_input->pid != NULL)
free(sink_input->pid);
}
-void sink_input_list_free(GArray *sink_input_list) {
+void sink_input_list_free(GArray *sink_input_list)
+{
for (int i = 0; i < sink_input_list->len; ++i)
sink_input_clear(&g_array_index(sink_input_list, sink_input_info, i));
g_array_free(sink_input_list, true);