[Python-checkins] CVS: python/dist/src/Modules _cursesmodule.c,2.53,2.54 posixmodule.c,2.193,2.194
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 19 Jul 2001 13:48:34 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5102/Modules
Modified Files:
_cursesmodule.c posixmodule.c
Log Message:
Remove warnings from the SGI compiler.
This is part of SF patch #434992.
Index: _cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v
retrieving revision 2.53
retrieving revision 2.54
diff -C2 -r2.53 -r2.54
*** _cursesmodule.c 2001/07/14 20:38:30 2.53
--- _cursesmodule.c 2001/07/19 20:48:32 2.54
***************
*** 115,121 ****
explicit prototypes here. */
extern int setupterm(char *,int,int *);
! #ifdef sgi
! extern char *tigetstr(char *);
! extern char *tparm(char *instring, ...);
#endif
--- 115,120 ----
explicit prototypes here. */
extern int setupterm(char *,int,int *);
! #ifdef __sgi
! #include <term.h>
#endif
***************
*** 722,726 ****
return NULL;
}
! return PyInt_FromLong(rtn);
}
--- 721,725 ----
return NULL;
}
! return PyInt_FromLong((long)rtn);
}
***************
*** 1306,1310 ****
case 0:
return PyCursesCheckERR(scroll(self->win), "scroll");
- break;
case 1:
if (!PyArg_Parse(args, "i;nlines", &nlines))
--- 1305,1308 ----
***************
*** 1326,1330 ****
return NULL;
return PyCursesCheckERR(touchline(self->win,st,cnt), "touchline");
- break;
case 3:
if (!PyArg_Parse(args, "(iii);start,count,val", &st, &cnt, &val))
--- 1324,1327 ----
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.193
retrieving revision 2.194
diff -C2 -r2.193 -r2.194
*** posixmodule.c 2001/07/17 20:37:36 2.193
--- posixmodule.c 2001/07/19 20:48:32 2.194
***************
*** 1216,1220 ****
if (!PyArg_ParseTuple(args, "i:umask", &i))
return NULL;
! i = umask(i);
if (i < 0)
return posix_error();
--- 1216,1220 ----
if (!PyArg_ParseTuple(args, "i:umask", &i))
return NULL;
! i = (int)umask(i);
if (i < 0)
return posix_error();