[Python-checkins] CVS: python/dist/src/Modules linuxaudiodev.c,2.3,2.4

Jeremy Hylton python-dev@python.org
2000年7月11日 13:30:08 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv8436/Modules
Modified Files:
	linuxaudiodev.c 
Log Message:
satisfy the -Wall: remove two unused local variables and unused ins function
Index: linuxaudiodev.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/linuxaudiodev.c,v
retrieving revision 2.3
retrieving revision 2.4
diff -C2 -r2.3 -r2.4
*** linuxaudiodev.c	2000年07月08日 06:05:58	2.3
--- linuxaudiodev.c	2000年07月11日 20:30:05	2.4
***************
*** 65,70 ****
 char *mode;
 char *basedev;
- char *ctldev;
- char *opendev;
 
 /* Check arg for r/w/rw */
--- 65,68 ----
***************
*** 385,399 ****
 { 0, 0 },
 };
- 
- static int
- ins(PyObject *d, char *symbol, long value)
- {
- PyObject* v = PyInt_FromLong(value);
- if (!v || PyDict_SetItemString(d, symbol, v) < 0)
- return -1; /* triggers fatal error */
- 
- Py_DECREF(v);
- return 0;
- }
 
 void
--- 383,386 ----

AltStyle によって変換されたページ (->オリジナル) /