[MPlayer-dev-eng] [patch] libao2/ small cleanup

Stefan Huehner stefan at huehner.org
Tue Jul 4 17:06:46 CEST 2006


Hi,

ao_nas.c:
add const a read-only string parameter of nas_print_error.

ao_oss.c:
two variables are made static. the char* of them is additionally
modified to const char*

Regards,
Stefan

-------------- next part --------------
--- libao2/ao_nas.c	(revision 18900)
+++ libao2/ao_nas.c	(working copy)
@@ -132,7 +132,7 @@
 
 LIBAO_EXTERN(nas)
 
-static void nas_print_error(AuServer *aud, char *prefix, AuStatus as)
+static void nas_print_error(AuServer *aud, const char *prefix, AuStatus as)
 {
 	char s[100];
 	AuGetErrorText(aud, as, s, 100);
--- libao2/ao_oss.c	(revision 18900)
+++ libao2/ao_oss.c	(working copy)
@@ -148,8 +148,8 @@
 static audio_buf_info zz;
 static int audio_fd=-1;
 
-char *oss_mixer_device = PATH_DEV_MIXER;
-int oss_mixer_channel = SOUND_MIXER_PCM;
+static const char *oss_mixer_device = PATH_DEV_MIXER;
+static int oss_mixer_channel = SOUND_MIXER_PCM;
 
 // to set/get/query special features/parameters
 static int control(int cmd,void *arg){


More information about the MPlayer-dev-eng mailing list