From 0e26e43b991e93abb80262d0eda85e068bb8b33d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 2 Dec 2011 15:23:42 -0500 Subject: [PATCH] Remove duplicate return statements. --- common/atobool.c | 1 - common/term.c | 1 - src/exec.c | 1 - 3 files changed, 3 deletions(-) diff --git a/common/atobool.c b/common/atobool.c index 0a59be16a..6d6b50289 100644 --- a/common/atobool.c +++ b/common/atobool.c @@ -80,6 +80,5 @@ atobool(const char *str) return 0; break; } - return -1; debug_return_int(-1); } diff --git a/common/term.c b/common/term.c index 32d33bd6b..e9c4a499d 100644 --- a/common/term.c +++ b/common/term.c @@ -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); diff --git a/src/exec.c b/src/exec.c index 959f61299..09d057cf3 100644 --- a/src/exec.c +++ b/src/exec.c @@ -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 */ -- 2.40.0