From: Diego E. 'Flameeyes' Pettenò Date: Fri, 21 Nov 2008 01:20:36 +0000 (+0100) Subject: Mark as static the functions not used outside their unit. X-Git-Tag: v1.0.19~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=021c884548f8ed502fec114a1efd22679d718a19;p=alsa-plugins.git 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ò --- 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);