Remove duplicate return statements.

This commit is contained in:
Todd C. Miller
2011-12-02 15:23:42 -05:00
parent db3fd558be
commit 0e26e43b99
3 changed files with 0 additions and 3 deletions

View File

@@ -80,6 +80,5 @@ atobool(const char *str)
return 0; return 0;
break; break;
} }
return -1;
debug_return_int(-1); debug_return_int(-1);
} }

View File

@@ -96,7 +96,6 @@ term_noecho(int fd)
#endif #endif
if (tcsetattr(fd, TCSADRAIN|TCSASOFT, &term) == 0) { if (tcsetattr(fd, TCSADRAIN|TCSASOFT, &term) == 0) {
changed = 1; changed = 1;
return 1;
debug_return_int(1); debug_return_int(1);
} }
debug_return_int(0); debug_return_int(0);

View File

@@ -235,7 +235,6 @@ sudo_execve(struct command_details *details, struct command_status *cstat)
case -1: case -1:
cstat->type = CMD_ERRNO; cstat->type = CMD_ERRNO;
cstat->val = errno; cstat->val = errno;
return -1;
debug_return_int(-1); debug_return_int(-1);
case 0: case 0:
/* child continues without controlling terminal */ /* child continues without controlling terminal */