summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 02:20:36 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 13:07:09 +0100
commit021c884548f8ed502fec114a1efd22679d718a19 (patch)
treeadee497f5b371155ae04a9dac23c7ed653b6a8e3
parent9d65155c28d4a47022a4de7e604187b8b2ad2137 (diff)
Mark as static the functions not used outside their unit.
This allows the compiler to assume more about their interface, if at all possible. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
-rw-r--r--maemo/alsa-dsp.c4
-rw-r--r--maemo/dsp-ctl.c6
-rw-r--r--pulse/pcm_pulse.c2
-rw-r--r--usb_stream/pcm_usb_stream.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/maemo/alsa-dsp.c b/maemo/alsa-dsp.c
index ff5d273..414dbdb 100644
--- a/maemo/alsa-dsp.c
+++ b/maemo/alsa-dsp.c
@@ -745,9 +745,9 @@ SND_PCM_PLUGIN_DEFINE_FUNC(alsa_dsp)
}
-void alsa_dsp_descructor(void) __attribute__ ((destructor));
+static void alsa_dsp_descructor(void) __attribute__ ((destructor));
-void alsa_dsp_descructor(void)
+static void alsa_dsp_descructor(void)
{
DENTER();
DPRINT("alsa dsp destructor\n");
diff --git a/maemo/dsp-ctl.c b/maemo/dsp-ctl.c
index 6aac273..523c580 100644
--- a/maemo/dsp-ctl.c
+++ b/maemo/dsp-ctl.c
@@ -66,7 +66,7 @@ static snd_ctl_dsp_t *free_ref;
*
* @return zero. success.
*/
-int free_control_list(control_list_t * control_list)
+static int free_control_list(control_list_t * control_list)
{
struct list_head *pos, *q;
control_list_t *tmp;
@@ -616,9 +616,9 @@ SND_CTL_PLUGIN_DEFINE_FUNC(dsp_ctl)
DLEAVE(ret);
return ret;
}
-void dsp_ctl_descructor(void) __attribute__ ((destructor));
+static void dsp_ctl_descructor(void) __attribute__ ((destructor));
-void dsp_ctl_descructor(void)
+static void dsp_ctl_descructor(void)
{
DENTER();
DPRINT("dsp ctl destructor\n");
diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c
index 3d15ff0..db8d1e1 100644
--- a/pulse/pcm_pulse.c
+++ b/pulse/pcm_pulse.c
@@ -217,7 +217,7 @@ finish:
return err;
}
-int pulse_drain(snd_pcm_ioplug_t * io)
+static int pulse_drain(snd_pcm_ioplug_t * io)
{
snd_pcm_pulse_t *pcm = io->private_data;
pa_operation *o;
diff --git a/usb_stream/pcm_usb_stream.c b/usb_stream/pcm_usb_stream.c
index a1a2f99..4097693 100644
--- a/usb_stream/pcm_usb_stream.c
+++ b/usb_stream/pcm_usb_stream.c
@@ -75,7 +75,7 @@ typedef struct {
static struct user_usb_stream *uus;
static pthread_mutex_t uus_mutex = PTHREAD_MUTEX_INITIALIZER;
-struct user_usb_stream *get_uus(const char *card)
+static struct user_usb_stream *get_uus(const char *card)
{
pthread_mutex_lock(&uus_mutex);