};
static size_t request_types_len = NUM_ELEMENTS(request_types);
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
DEBUG("Usage: dhcpclient [options] server[:port] [<command>]");
DEBUG("Send a DHCP request with provided RADIUS attrs and output response.");
{ NULL }
};
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "Usage: radclient [options] server[:port] <command> [<secret>]\n");
/*
* Display the syntax for starting this program.
*/
-static void NEVER_RETURNS usage(main_config_t const *config, int status)
+static NEVER_RETURNS void usage(main_config_t const *config, int status)
{
FILE *output = status ? stderr : stdout;
{ NULL }
};
-static void NEVER_RETURNS usage(int status);
+static NEVER_RETURNS void usage(int status);
/** Fork and kill the parent process, writing out our PID
*
}
}
-static void NEVER_RETURNS usage(int status)
+static NEVER_RETURNS void usage(int status)
{
FILE *output = status ? stderr : stdout;
fprintf(output, "Usage: radsniff [options][stats options] -- [pcap files]\n");
{ NULL }
};
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "Usage: radsnmp [options] server[:port] [<secret>]\n");
/*
* Print usage message and exit.
*/
-static void NEVER_RETURNS usage(int status)
+static NEVER_RETURNS void usage(int status)
{
FILE *output = status?stderr:stdout;
};
-static void NEVER_RETURNS usage(char *argv[])
+static NEVER_RETURNS void usage(char *argv[])
{
fprintf(stderr, "usage: %s [OPTS] filename ...\n", argv[0]);
fprintf(stderr, " -d <raddb> Set user dictionary directory (defaults to " RADDBDIR ").\n");
/*
* Display the syntax for starting this program.
*/
-static void NEVER_RETURNS usage(main_config_t const *config, int status)
+static NEVER_RETURNS void usage(main_config_t const *config, int status)
{
FILE *output = status ? stderr : stdout;
* @param[in] now Exit immediately.
*/
#ifndef NDEBUG
-void NEVER_RETURNS _fr_exit(char const *file, int line, int status, bool now)
+NEVER_RETURNS void _fr_exit(char const *file, int line, int status, bool now)
{
if (status != EXIT_SUCCESS) {
char const *error = fr_strerror();
exit(status);
}
#else
-void NEVER_RETURNS _fr_exit(UNUSED char const *file, UNUSED int line, int status, bool now)
+NEVER_RETURNS void _fr_exit(UNUSED char const *file, UNUSED int line, int status, bool now)
{
if (status != EXIT_SUCCESS) fr_debug_break(false); /* If running under GDB we'll break here */
bool _fr_assert_fail(char const *file, int line, char const *expr, char const *msg, ...)
CC_HINT(format (printf, 4, 5));
-void NEVER_RETURNS _fr_assert_fatal(char const *file, int line, char const *expr, char const *msg, ...)
+NEVER_RETURNS void _fr_assert_fatal(char const *file, int line, char const *expr, char const *msg, ...)
CC_HINT(format (printf, 4, 5));
-void NEVER_RETURNS _fr_exit(char const *file, int line, int status, bool now);
+NEVER_RETURNS void _fr_exit(char const *file, int line, int status, bool now);
/** @} */
/** @name Assertion and exit macros
static fr_cmd_t *local_cmds = NULL;
-static void NEVER_RETURNS usage(int status)
+static NEVER_RETURNS void usage(int status)
{
FILE *output = status ? stderr : stdout;
fprintf(output, "Usage: %s [ args ]\n", progname);
}
// http://stackoverflow.com/a/29838852
-static void NEVER_RETURNS handleErrors(void)
+static NEVER_RETURNS void handleErrors(void)
{
unsigned long errCode;
"redis.call('DEL', '{' .. KEYS[1] .. '}:"IPPOOL_OWNER_KEY":' .. found)" EOL /* 11 */
"return 1" EOL; /* 12 */
-static void NEVER_RETURNS usage(int ret) {
+static NEVER_RETURNS void usage(int ret) {
INFO("Usage: %s -adrsm range... [-p prefix_len]... [-x]... [-oShf] server[:port] [pool] [range id]", name);
INFO("Pool management:");
INFO(" -a range Add address(es)/prefix(es) to the pool.");
/**********************************************************************/
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: atomic_queue_test [OPTS]\n");
fprintf(stderr, " -s size set queue size.\n");
/**********************************************************************/
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: channel_test [OPTS]\n");
fprintf(stderr, " -c <control-plane> Size of the control plane queue.\n");
/**********************************************************************/
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: control_test [OPTS]\n");
fprintf(stderr, " -m <messages> Send number of messages.\n");
}
}
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: message_set_test [OPTS]\n");
fprintf(stderr, " -s <string> Set random seed to <string>.\n");
static fr_schedule_worker_t workers[MAX_WORKERS];
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: radius_test [OPTS]\n");
fprintf(stderr, " -c <control-plane> Size of the control plane queue.\n");
.entry_point_set = entry_point_set,
};
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: schedule_test [OPTS]\n");
fprintf(stderr, " -n <num> Start num network threads\n");
}
}
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: ring_buffer_test [OPTS]\n");
fprintf(stderr, " -x Debugging mode.\n");
static int debug_lvl = 0;
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: schedule_test [OPTS]\n");
fprintf(stderr, " -n <num> Start num network threads\n");
/**********************************************************************/
-static void NEVER_RETURNS usage(void)
+static NEVER_RETURNS void usage(void)
{
fprintf(stderr, "usage: worker_test [OPTS]\n");
fprintf(stderr, " -c <control-plane> Size of the control plane queue.\n");