extern int af;
extern int mtrtype;
+static int __unused_int;
+
void pwcenter(char *str)
{
- int maxx, maxy;
+ int maxx;
int cx;
- getmaxyx(stdscr, maxy, maxx);
+ getmaxyx(stdscr, __unused_int, maxx);
cx = (signed)(maxx - strlen(str)) / 2;
while(cx-- > 0)
printw(" ");
int at;
struct mplslen *mpls, *mplss;
ip_t *addr, *addrs;
- int y, x;
+ int y;
char *name;
int i, j, k;
}
attroff(A_BOLD);
- getyx(stdscr, y, x);
+ getyx(stdscr, y, __unused_int);
move(y, startstat);
/* net_xxx returns times in usecs. Just display millisecs */
void mtr_curses_graph(int startstat, int cols)
{
- int max, at, y, x;
+ int max, at, y;
ip_t * addr;
char* name;
}
attroff(A_BOLD);
- getyx(stdscr, y, x);
+ getyx(stdscr, y, __unused_int);
move(y, startstat);
printw(" ");
void mtr_curses_redraw(void)
{
- int maxx, maxy;
+ int maxx;
int startstat;
int rowstat;
time_t t;
erase();
- getmaxyx(stdscr, maxy, maxx);
+ getmaxyx(stdscr, __unused_int, maxx);
rowstat = 5;
int main(int argc, char **argv)
{
- ip_t * traddr;
struct hostent * host = NULL;
int net_preopen_result;
#ifdef ENABLE_IPV6
af = host->h_addrtype;
#endif
- traddr = (ip_t *) host->h_addr;
-
if (net_open(host) != 0) {
fprintf(stderr, "mtr: Unable to start net module.\n");
exit(1);
/*ok int packetsize = sizeof(struct IPHeader) + sizeof(struct ICMPHeader) + datasize;*/
int rv;
static int first=1;
- int ttl, iphsize = 0, echotype = 0, salen = 0, udphsize = 0;
+ int ttl, iphsize = 0, echotype = 0, salen = 0;
ttl = index + 1;
case IPPROTO_UDP:
udp = (struct UDPHeader *)(packet + iphsize);
- udphsize = sizeof (struct UDPHeader);
udp->checksum = 0;
mypid = (uint16)getpid();
if (mypid < MinPort)