mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 04:02:19 +00:00
Fixed the strcmp comparison and printing error in the exclude_interface function.
This commit is contained in:
parent
84b6ed71d5
commit
2cc1ce7892
@ -371,9 +371,9 @@ exclude_interface(void)
|
|||||||
printf("Interface names in Use: %s", (char *) server_opt.ifs);
|
printf("Interface names in Use: %s", (char *) server_opt.ifs);
|
||||||
|
|
||||||
for (i = 0; i < me.cur_ifs_n; i++) {
|
for (i = 0; i < me.cur_ifs_n; i++) {
|
||||||
if (strcmp(me.cur_ifs[i], optarg) == 0) {
|
if (strcmp(me.cur_ifs[i].dev_name, optarg) == 0) {
|
||||||
printf("Interface %s removed, And replaced with %s",
|
printf("Interface %s removed, And replaced with %s",
|
||||||
me.cur_ifs[i], me.cur_ifs[me.cur_ifs_n]);
|
me.cur_ifs[i].dev_name, me.cur_ifs[me.cur_ifs_n].dev_name);
|
||||||
ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
|
ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user