Skip to content

Commit 12475f6

Browse files
remove forward declaration
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent fa1996b commit 12475f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8200,11 +8200,9 @@ static PyObject *
82008200
os_sched_get_priority_max_impl(PyObject *module, int policy)
82018201
/*[clinic end generated code: output=9e465c6e43130521 input=2097b7998eca6874]*/
82028202
{
8203-
int max;
8204-
82058203
/* make sure that errno is cleared before the call */
82068204
errno = 0;
8207-
max = sched_get_priority_max(policy);
8205+
int max = sched_get_priority_max(policy);
82088206
if (max == -1 && errno)
82098207
return posix_error();
82108208
return PyLong_FromLong(max);

0 commit comments

Comments
 (0)