Update of /cvsroot/liboss/liboss/include
In directory usw-pr-cvs1:/tmp/cvs-serv24494
Modified Files:
soundcard.h
Log Message:
added calls to va_end for future hehe
Index: soundcard.h
===================================================================
RCS file: /cvsroot/liboss/liboss/include/soundcard.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- soundcard.h 6 Nov 2002 17:36:34 -0000 1.13
+++ soundcard.h 6 Nov 2002 17:42:16 -0000 1.14
@@ -332,16 +332,23 @@
static inline int LIBOSS_IOCTL (int x, unsigned long y,...)
{
+ int result;
+
va_list l;
va_start(l,y);
- return liboss_ioctl(x,y,l);
+ result = liboss_ioctl(x,y,l);
+ va_end (l);
}
static inline int LIBOSS_OPEN (const char* x, int y,...)
{
+ int result;
+
va_list l;
va_start(l,y);
- return liboss_open(x,y,l);
+ result = liboss_open(x,y,l);
+ va_end (l);
+ return result;
}
static inline int LIBOSS_CLOSE (int x) {liboss_close(x); return x;}
|