Skip to content

Commit bdb450e

Browse files
Use typedefs.
1 parent 84c4387 commit bdb450e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/_xxinterpchannelsmodule.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ _channels_add(_channels *channels, _PyChannelState *chan)
15411541
}
15421542

15431543
/* forward */
1544-
static int _channel_set_closing(struct _channelref *, PyThread_type_lock);
1544+
static int _channel_set_closing(_channelref *, PyThread_type_lock);
15451545

15461546
static int
15471547
_channels_close(_channels *channels, int64_t cid, _PyChannelState **pchan,
@@ -1736,12 +1736,12 @@ _channels_clear_interpreter(_channels *channels, int64_t interpid)
17361736
/* support for closing non-empty channels */
17371737

17381738
struct _channel_closing {
1739-
struct _channelref *ref;
1739+
_channelref *ref;
17401740
};
17411741

17421742
static int
1743-
_channel_set_closing(struct _channelref *ref, PyThread_type_lock mutex) {
1744-
struct _channel *chan = ref->chan;
1743+
_channel_set_closing(_channelref *ref, PyThread_type_lock mutex) {
1744+
_PyChannelState *chan = ref->chan;
17451745
if (chan == NULL) {
17461746
// already closed
17471747
return 0;
@@ -1765,7 +1765,7 @@ _channel_set_closing(struct _channelref *ref, PyThread_type_lock mutex) {
17651765
}
17661766

17671767
static void
1768-
_channel_clear_closing(struct _channel *chan) {
1768+
_channel_clear_closing(_PyChannelState *chan) {
17691769
PyThread_acquire_lock(chan->mutex, WAIT_LOCK);
17701770
if (chan->closing != NULL) {
17711771
GLOBAL_FREE(chan->closing);
@@ -1775,7 +1775,7 @@ _channel_clear_closing(struct _channel *chan) {
17751775
}
17761776

17771777
static void
1778-
_channel_finish_closing(struct _channel *chan) {
1778+
_channel_finish_closing(_PyChannelState *chan) {
17791779
struct _channel_closing *closing = chan->closing;
17801780
if (closing == NULL) {
17811781
return;

0 commit comments

Comments
 (0)