fix clang warning about dead stores

clang 'scan-build':
Value stored to 'r' is never read
Value stored to 'fd' is never read
This commit is contained in:
Florian Westphal 2011-05-06 20:31:56 +02:00
parent 10c7a15687
commit 605b6a67bc
2 changed files with 3 additions and 3 deletions

View File

@ -526,6 +526,8 @@ IRC_TOPIC( CLIENT *Client, REQUEST *Req )
Client_ID(Client),
Channel_Name(chan), topic);
#ifndef STRICT_RFC
if (!r)
return r;
r = IRC_WriteStrClient(from, RPL_TOPICSETBY_MSG,
Client_ID(Client),
Channel_Name(chan),

View File

@ -706,10 +706,8 @@ NGIRCd_Init( bool NGIRCd_NoDaemon )
/* Detach stdin, stdout and stderr */
Setup_FDStreams(fd);
if (fd > 2) {
if (fd > 2)
close(fd);
fd = -1;
}
}
pid = getpid();