Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0368bc44
Commit
0368bc44
authored
Jul 19, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove warnings from the SGI compiler.
This is part of SF patch #434992.
parent
78bdb9bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+3
-6
Modules/posixmodule.c
Modules/posixmodule.c
+1
-1
No files found.
Modules/_cursesmodule.c
View file @
0368bc44
...
...
@@ -114,9 +114,8 @@ char *PyCursesVersion = "2.1";
curses module in other ways. So the code will just specify
explicit prototypes here. */
extern
int
setupterm
(
char
*
,
int
,
int
*
);
#ifdef sgi
extern
char
*
tigetstr
(
char
*
);
extern
char
*
tparm
(
char
*
instring
,
...);
#ifdef __sgi
#include <term.h>
#endif
#if defined(sgi) || defined(__sun__)
...
...
@@ -721,7 +720,7 @@ PyCursesWindow_GetCh(PyCursesWindowObject *self, PyObject *args)
PyErr_SetString
(
PyExc_TypeError
,
"getch requires 0 or 2 arguments"
);
return
NULL
;
}
return
PyInt_FromLong
(
rtn
);
return
PyInt_FromLong
(
(
long
)
rtn
);
}
static
PyObject
*
...
...
@@ -1305,7 +1304,6 @@ PyCursesWindow_Scroll(PyCursesWindowObject *self, PyObject *args)
switch
(
ARG_COUNT
(
args
))
{
case
0
:
return
PyCursesCheckERR
(
scroll
(
self
->
win
),
"scroll"
);
break
;
case
1
:
if
(
!
PyArg_Parse
(
args
,
"i;nlines"
,
&
nlines
))
return
NULL
;
...
...
@@ -1325,7 +1323,6 @@ PyCursesWindow_TouchLine(PyCursesWindowObject *self, PyObject *args)
if
(
!
PyArg_Parse
(
args
,
"(ii);start,count"
,
&
st
,
&
cnt
))
return
NULL
;
return
PyCursesCheckERR
(
touchline
(
self
->
win
,
st
,
cnt
),
"touchline"
);
break
;
case
3
:
if
(
!
PyArg_Parse
(
args
,
"(iii);start,count,val"
,
&
st
,
&
cnt
,
&
val
))
return
NULL
;
...
...
Modules/posixmodule.c
View file @
0368bc44
...
...
@@ -1215,7 +1215,7 @@ posix_umask(PyObject *self, PyObject *args)
int
i
;
if
(
!
PyArg_ParseTuple
(
args
,
"i:umask"
,
&
i
))
return
NULL
;
i
=
umask
(
i
);
i
=
(
int
)
umask
(
i
);
if
(
i
<
0
)
return
posix_error
();
return
PyInt_FromLong
((
long
)
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment