Browse Source

Fixed the strcmp comparison and printing error in the exclude_interface function.

MissValeska 10 years ago
parent
commit
2cc1ce7892
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/netsukuku.c

+ 2
- 2
src/netsukuku.c View File

@@ -371,9 +371,9 @@ exclude_interface(void)
371 371
 	printf("Interface names in Use: %s", (char *) server_opt.ifs);
372 372
 
373 373
 	for (i = 0; i < me.cur_ifs_n; i++) {
374
-		if (strcmp(me.cur_ifs[i], optarg) == 0) {
374
+		if (strcmp(me.cur_ifs[i].dev_name, optarg) == 0) {
375 375
 			printf("Interface %s removed, And replaced with %s",
376
-			me.cur_ifs[i], me.cur_ifs[me.cur_ifs_n]);
376
+			me.cur_ifs[i].dev_name, me.cur_ifs[me.cur_ifs_n].dev_name);
377 377
                         ifs_del(me.cur_ifs, &me.cur_ifs_n, i);
378 378
                         return 0;
379 379
 		}

Loading…
Cancel
Save