Remove duplicate return statements.
This commit is contained in:
@@ -80,6 +80,5 @@ atobool(const char *str)
|
|||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return -1;
|
|
||||||
debug_return_int(-1);
|
debug_return_int(-1);
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
|
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user