version 1.1.1.2, 2021/03/17 00:07:30
|
version 1.1.1.3, 2023/09/27 11:18:58
|
Line 7
|
Line 7
|
Copyright (C) 1998 Bertrand Leconte <B.Leconte@mail.dotcom.fr> |
Copyright (C) 1998 Bertrand Leconte <B.Leconte@mail.dotcom.fr> |
|
|
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License version 2 as | it under the terms of the GNU General Public License version 2 as |
published by the Free Software Foundation. |
published by the Free Software Foundation. |
|
|
This program is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
Line 77 void split_redraw(
|
Line 77 void split_redraw(
|
fprintf(stderr, "split_redraw()\n"); |
fprintf(stderr, "split_redraw()\n"); |
#endif |
#endif |
|
|
/* | /* |
* If there is less lines than last time, we delete them |
* If there is less lines than last time, we delete them |
* TEST THIS PLEASE |
* TEST THIS PLEASE |
*/ |
*/ |
Line 95 void split_redraw(
|
Line 95 void split_redraw(
|
if (addrcmp(addr, &ctl->unspec_addr, ctl->af)) { |
if (addrcmp(addr, &ctl->unspec_addr, ctl->af)) { |
char str[256], *name; |
char str[256], *name; |
if (!(name = dns_lookup(ctl, addr))) |
if (!(name = dns_lookup(ctl, addr))) |
name = strlongip(ctl, addr); | name = strlongip(ctl->af, addr); |
if (ctl->show_ips) { |
if (ctl->show_ips) { |
snprintf(str, sizeof(str), "%s %s", name, |
snprintf(str, sizeof(str), "%s %s", name, |
strlongip(ctl, addr)); | strlongip(ctl->af, addr)); |
name = str; |
name = str; |
} |
} |
/* May be we should test name's length */ |
/* May be we should test name's length */ |
Line 166 int split_keyaction(
|
Line 166 int split_keyaction(
|
tv.tv_usec = 0; |
tv.tv_usec = 0; |
|
|
if (select(1, &readfds, NULL, NULL, &tv) > 0) { |
if (select(1, &readfds, NULL, NULL, &tv) > 0) { |
if (read(0, &c, 1) <= 0) | if (read(0, &c, 1) <= 0) |
return ActionQuit; |
return ActionQuit; |
} else |
} else |
return 0; |
return 0; |