mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Remove some unused variables.
Thanks to @ch3root again for this patch.
This commit is contained in:
parent
0f1cab3182
commit
70f641f845
@ -111,7 +111,7 @@ void sig_readdata(sel_rfd *rfd, void *data, size_t len)
|
||||
while (len > 0) {
|
||||
if (*p == 'C') {
|
||||
int status;
|
||||
pid_t pid = waitpid(-1, &status, WNOHANG);
|
||||
waitpid(-1, &status, WNOHANG);
|
||||
if (WIFEXITED(status) || WIFSIGNALED(status))
|
||||
exit(0); /* child process vanished */
|
||||
}
|
||||
|
@ -325,9 +325,7 @@ static void proc_rec_opt(Telnet telnet, int cmd, int option)
|
||||
|
||||
static void process_subneg(Telnet telnet)
|
||||
{
|
||||
unsigned char b[2048], *p, *q;
|
||||
int var, value, n;
|
||||
char *e;
|
||||
|
||||
switch (telnet->sb_opt) {
|
||||
case TELOPT_OLD_ENVIRON:
|
||||
|
1
sshcrc.c
1
sshcrc.c
@ -198,7 +198,6 @@ static const unsigned long crc32_table[256] = {
|
||||
#ifdef GENPROGRAM
|
||||
int main(void)
|
||||
{
|
||||
unsigned long crcword;
|
||||
int i;
|
||||
|
||||
crc32_init();
|
||||
|
@ -140,8 +140,6 @@ int make_private_security_descriptor(DWORD permissions,
|
||||
PACL *acl,
|
||||
char **error)
|
||||
{
|
||||
SID_IDENTIFIER_AUTHORITY world_auth = SECURITY_WORLD_SID_AUTHORITY;
|
||||
SID_IDENTIFIER_AUTHORITY nt_auth = SECURITY_NT_AUTHORITY;
|
||||
EXPLICIT_ACCESS ea[3];
|
||||
int acl_err;
|
||||
int ret = FALSE;
|
||||
@ -225,8 +223,6 @@ int make_private_security_descriptor(DWORD permissions,
|
||||
|
||||
int setprocessacl(char *error)
|
||||
{
|
||||
SID_IDENTIFIER_AUTHORITY world_auth = SECURITY_WORLD_SID_AUTHORITY;
|
||||
SID_IDENTIFIER_AUTHORITY nt_auth = SECURITY_NT_AUTHORITY;
|
||||
EXPLICIT_ACCESS ea[2];
|
||||
int acl_err;
|
||||
int ret=FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user