mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 04:02:19 +00:00
ntk: Don't return in function that doesn't use returns
This commit is contained in:
parent
cf9063f92b
commit
fd551da7b4
@ -370,11 +370,13 @@ void check_excluded(void) {
|
||||
* returns 0 on success, -1 on error, And 1 if it has already been run.
|
||||
*/
|
||||
|
||||
int exclude_interface() {
|
||||
void
|
||||
exclude_interface()
|
||||
{
|
||||
|
||||
if(prevent_duplication == 1) {
|
||||
check_excluded();
|
||||
return 1;
|
||||
return;
|
||||
}
|
||||
|
||||
char *ifs = "null1";
|
||||
@ -402,7 +404,7 @@ int exclude_interface() {
|
||||
if(strcmp(old_tmp, ifs) == 0) {
|
||||
printf("Loop finished: %s\n", ifs);
|
||||
check_excluded();
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
tmp = tmp->ifa_next;
|
||||
|
Loading…
Reference in New Issue
Block a user