mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
simplify a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30094 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
80632b32c7
commit
e3423f8694
1 changed files with 3 additions and 12 deletions
|
@ -1016,15 +1016,12 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
{
|
||||
if (fh_stderr != nil)
|
||||
{
|
||||
IF_NO_GC([fh_stderr retain];)
|
||||
DESTROY(self);
|
||||
ASSIGN(self, fh_stderr);
|
||||
}
|
||||
else
|
||||
{
|
||||
self = [self initWithFileDescriptor: 2 closeOnDealloc: NO];
|
||||
fh_stderr = self;
|
||||
}
|
||||
self = fh_stderr;
|
||||
if (self)
|
||||
{
|
||||
readOK = NO;
|
||||
|
@ -1036,15 +1033,12 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
{
|
||||
if (fh_stdin != nil)
|
||||
{
|
||||
IF_NO_GC([fh_stdin retain];)
|
||||
DESTROY(self);
|
||||
ASSIGN(self, fh_stdin);
|
||||
}
|
||||
else
|
||||
{
|
||||
self = [self initWithFileDescriptor: 0 closeOnDealloc: NO];
|
||||
fh_stdin = self;
|
||||
}
|
||||
self = fh_stdin;
|
||||
if (self)
|
||||
{
|
||||
writeOK = NO;
|
||||
|
@ -1056,15 +1050,12 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
{
|
||||
if (fh_stdout != nil)
|
||||
{
|
||||
IF_NO_GC([fh_stdout retain];)
|
||||
DESTROY(self);
|
||||
ASSIGN(self, fh_stdout);
|
||||
}
|
||||
else
|
||||
{
|
||||
self = [self initWithFileDescriptor: 1 closeOnDealloc: NO];
|
||||
fh_stdout = self;
|
||||
}
|
||||
self = fh_stdout;
|
||||
if (self)
|
||||
{
|
||||
readOK = NO;
|
||||
|
|
Loading…
Reference in a new issue