diff --git a/src/oping.c b/src/oping.c
index 7058ac0480ac82d6bd5cb5f700fb2c8d51a1d4c6..3cfe6d89a68f3cf538730ad1e60ab4cd828c85aa 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
/**
* Object oriented C module to send ICMP and ICMPv6 `echo's.
- * Copyright (C) 2006-2010 Florian octo Forster <ff at octo.it>
+ * Copyright (C) 2006-2011 Florian octo Forster <ff at octo.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
# define _POSIX_SAVED_IDS 0
#endif
+#ifndef IPTOS_MINCOST
+# define IPTOS_MINCOST 0x02
+#endif
+
/* Remove GNU specific __attribute__ settings when using another compiler */
#if !__GNUC__
# define __attribute__(x) /**/
exit (status);
} /* }}} void usage_exit */
+__attribute__((noreturn))
static void usage_qos_exit (const char *arg, int status) /* {{{ */
{
if (arg != 0)
&& (strlen (opt) == 4))
{
uint8_t dscp;
- uint8_t class;
- uint8_t prec;
+ uint8_t class = 0;
+ uint8_t prec = 0;
/* There are four classes, AF1x, AF2x, AF3x, and AF4x. */
if (opt[2] == '1')
context->window = NULL;
}
context->window = newwin (/* height = */ 4,
- /* width = */ 0,
+ /* width = */ width,
/* y = */ main_win_height + (4 * context->index),
/* x = */ 0);
}
main_win_height = height - (4 * host_num);
main_win = newwin (/* height = */ main_win_height,
- /* width = */ 0,
+ /* width = */ width,
/* y = */ 0, /* x = */ 0);
/* Allow scrolling */
scrollok (main_win, TRUE);
context->window = NULL;
}
context->window = newwin (/* height = */ 4,
- /* width = */ 0,
+ /* width = */ width,
/* y = */ main_win_height + (4 * context->index),
/* x = */ 0);
}