summaryrefslogtreecommitdiffstats
path: root/Mac/Unsupported
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-04 22:36:53 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-04 22:36:53 (GMT)
commit23f43d1bd26cb106ad76291d67bf59c26ed6a904 (patch)
tree898b89216a72a51296806ff4ce15c0df21bb8e0d /Mac/Unsupported
parentd5f53857dc58f69f6a79a7590de6c97d81fd5429 (diff)
downloadcpython-23f43d1bd26cb106ad76291d67bf59c26ed6a904.zip
cpython-23f43d1bd26cb106ad76291d67bf59c26ed6a904.tar.gz
cpython-23f43d1bd26cb106ad76291d67bf59c26ed6a904.tar.bz2
correct some return values and remove some unused variables
Diffstat (limited to 'Mac/Unsupported')
-rw-r--r--Mac/Unsupported/mactcp/mactcpmodule.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Mac/Unsupported/mactcp/mactcpmodule.c b/Mac/Unsupported/mactcp/mactcpmodule.c
index aaf0d51..81c1f0f 100644
--- a/Mac/Unsupported/mactcp/mactcpmodule.c
+++ b/Mac/Unsupported/mactcp/mactcpmodule.c
@@ -164,8 +164,6 @@ tcpcs_getattr(self, name)
tcpcsobject *self;
char *name;
{
- object *rv;
-
return getmember((char *)&self->status, tcpcs_memberlist, name);
}
@@ -295,7 +293,7 @@ tcps_asr_safe(arg)
object *args, *rv;
if ( self->asr == None )
- return;
+ return 0;
args = mkvalue("(ii)", self->asr_ec, self->asr_reason);
rv = call_object(self->asr, args);
DECREF(args);
@@ -459,7 +457,6 @@ tcps_Rcv(self, args)
tcpsobject *self;
object *args;
{
- int length;
int timeout;
rdsEntry rds[2];
OSErr err;
@@ -666,7 +663,7 @@ udps_asr_safe(arg)
object *args, *rv;
if ( self->asr == None )
- return;
+ return 0;
args = mkvalue("(i)", self->asr_ec);
rv = call_object(self->asr, args);
DECREF(args);