[MPlayer-cvslog] CVS: main/libao2 ao_sdl.c,1.41,1.42

Alexander Strasser beastd syncmail at mplayerhq.hu
Mon Dec 26 04:16:49 CET 2005


CVS change done by Alexander Strasser (beastd)

Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv10532/libao2

Modified Files:
	ao_sdl.c 
Log Message:
- move our setenv() fallback implementation to osdep
- assert that the override param is nonzero (zero is not implemented)
- correct return value type to int

based on a patch by Diego
fixes bugzilla bug #342


Index: ao_sdl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sdl.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- ao_sdl.c	27 Feb 2005 23:06:32 -0000	1.41
+++ ao_sdl.c	26 Dec 2005 03:16:47 -0000	1.42
@@ -122,22 +122,6 @@
 
 // end ring buffer stuff
 
-#if defined(__MINGW32__) || defined(HPUX) || defined(sgi) || (defined(sun) && defined(__svr4__))
-/* setenv is missing on win32, solaris, IRIX and HPUX */
-static void setenv(const char *name, const char *val, int _xx)
-{
-  int len  = strlen(name) + strlen(val) + 2;
-  char *env = malloc(len);
-
-  if (env != NULL) {
-    strcpy(env, name);
-    strcat(env, "=");
-    strcat(env, val);
-    putenv(env);
-  }
-}
-#endif
-
 
 // to set/get/query special features/parameters
 static int control(int cmd,void *arg){




More information about the MPlayer-cvslog mailing list