]> granicus.if.org Git - sudo/commitdiff
Remove duplicate return statements.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Dec 2011 20:23:42 +0000 (15:23 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Dec 2011 20:23:42 +0000 (15:23 -0500)
common/atobool.c
common/term.c
src/exec.c

index 0a59be16aa412b6d508016ea31ceb7a9b981e966..6d6b5028938bbabb209eb1d2d6072c37e59ab31a 100644 (file)
@@ -80,6 +80,5 @@ atobool(const char *str)
                return 0;
            break;
     }
-    return -1;
     debug_return_int(-1);
 }
index 32d33bd6b191d5bac380329845a6fd79156a05e4..e9c4a499df1949be87bb2067fe411ab4acc53c50 100644 (file)
@@ -96,7 +96,6 @@ term_noecho(int fd)
 #endif
     if (tcsetattr(fd, TCSADRAIN|TCSASOFT, &term) == 0) {
        changed = 1;
-       return 1;
        debug_return_int(1);
     }
     debug_return_int(0);
index 959f61299307c496f9c2687ed7172aeef937bc50..09d057cf31529ba1c6792c0a5694dd43495dd960 100644 (file)
@@ -235,7 +235,6 @@ sudo_execve(struct command_details *details, struct command_status *cstat)
            case -1:
                cstat->type = CMD_ERRNO;
                cstat->val = errno;
-               return -1;
                debug_return_int(-1);
            case 0:
                /* child continues without controlling terminal */