mirror of https://github.com/python/cpython.git
correct some return values and remove some unused variables
This commit is contained in:
parent
d5f53857dc
commit
23f43d1bd2
|
@ -164,8 +164,6 @@ tcpcs_getattr(self, name)
|
||||||
tcpcsobject *self;
|
tcpcsobject *self;
|
||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
object *rv;
|
|
||||||
|
|
||||||
return getmember((char *)&self->status, tcpcs_memberlist, name);
|
return getmember((char *)&self->status, tcpcs_memberlist, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -295,7 +293,7 @@ tcps_asr_safe(arg)
|
||||||
object *args, *rv;
|
object *args, *rv;
|
||||||
|
|
||||||
if ( self->asr == None )
|
if ( self->asr == None )
|
||||||
return;
|
return 0;
|
||||||
args = mkvalue("(ii)", self->asr_ec, self->asr_reason);
|
args = mkvalue("(ii)", self->asr_ec, self->asr_reason);
|
||||||
rv = call_object(self->asr, args);
|
rv = call_object(self->asr, args);
|
||||||
DECREF(args);
|
DECREF(args);
|
||||||
|
@ -459,7 +457,6 @@ tcps_Rcv(self, args)
|
||||||
tcpsobject *self;
|
tcpsobject *self;
|
||||||
object *args;
|
object *args;
|
||||||
{
|
{
|
||||||
int length;
|
|
||||||
int timeout;
|
int timeout;
|
||||||
rdsEntry rds[2];
|
rdsEntry rds[2];
|
||||||
OSErr err;
|
OSErr err;
|
||||||
|
@ -666,7 +663,7 @@ udps_asr_safe(arg)
|
||||||
object *args, *rv;
|
object *args, *rv;
|
||||||
|
|
||||||
if ( self->asr == None )
|
if ( self->asr == None )
|
||||||
return;
|
return 0;
|
||||||
args = mkvalue("(i)", self->asr_ec);
|
args = mkvalue("(i)", self->asr_ec);
|
||||||
rv = call_object(self->asr, args);
|
rv = call_object(self->asr, args);
|
||||||
DECREF(args);
|
DECREF(args);
|
||||||
|
|
Loading…
Reference in New Issue