Skip to contentSkip to conversation

sound/core/pcm.c: make snd_pcm_format_name() static

PATCH Applied Adrian Bunk 2 participants 3 messages Apr 10, 2006 – Apr 11, 2006 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/core/pcm.c: make snd_pcm_format_name() static

This patch makes the needlessly global snd_pcm_format_name() static.

---

 include/sound/pcm.h |    1 -
 sound/core/pcm.c    |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
include/sound/pcm.h renamed from include/sound/pcm.h.old +0 -1
@@ -898,7 +898,6 @@
 const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format);
 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames);
 snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian);
-const char *snd_pcm_format_name(snd_pcm_format_t format);
 
 void snd_pcm_set_ops(struct snd_pcm * pcm, int direction, struct snd_pcm_ops *ops);
 void snd_pcm_set_sync(struct snd_pcm_substream *substream);
sound/core/pcm.c renamed from sound/core/pcm.c.old +1 -1
@@ -196,7 +196,7 @@
 	FORMAT(U18_3BE),
 };
 
-const char *snd_pcm_format_name(snd_pcm_format_t format)
+static const char *snd_pcm_format_name(snd_pcm_format_t format)
 {
 	return snd_pcm_format_names[format];
 }
Applied
#1 lore raw

At Tue, 11 Apr 2006 00:18:01 +0200,

Quoted 4 lines · Adrian Bunk

This patch makes the needlessly global snd_pcm_format_name() static.

Thanks, applied to ALSA tree.

Takashi

Applied
#2 lore raw
In reply to Adrian Bunk

At Tue, 11 Apr 2006 00:18:01 +0200,

Quoted 4 lines · Adrian Bunk

This patch makes the needlessly global snd_pcm_format_name() static.

Thanks, applied to ALSA tree.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642