]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Remove some unused variables.
authorSimon Tatham <anakin@pobox.com>
Tue, 26 Jan 2016 18:36:26 +0000 (18:36 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 29 Feb 2016 19:59:36 +0000 (19:59 +0000)
Thanks to @ch3root again for this patch.

(cherry picked from commit 70f641f84527fcb5a2ccbff7c8e238003ff2d2f3)

contrib/cygtermd/main.c
contrib/cygtermd/telnet.c
sshcrc.c
windows/winsecur.c

index acf35dd9adfd700636a257ed94798fbcc335d5a5..84e6c75e2b8692f6e48033400d50c866cfa6fa77 100644 (file)
@@ -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 */
        }
index 7aec0aabac8fac066fa0f93a13b42b0f35aafd84..084873743209b44b52c2ad63089d826759c7275a 100644 (file)
@@ -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:
index ed20395b7247d73fc515929971056df048d8da18..782d04bb47ed30c8a69f9adaf93b3512799c6a0c 100644 (file)
--- a/sshcrc.c
+++ b/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();
index 8d0b223aa67b6a892f359ee4a3859071478814a4..91ce7e92f147d1004a1920a8c64e1584ac73f7fa 100644 (file)
@@ -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;