memcpy(output, passwd, len + 2);
}
-extern int const fr_attr_max_tlv;
-extern int const fr_attr_shift[];
-extern int const fr_attr_mask[];
-
static int do_next_tlv(VALUE_PAIR const *vp, VALUE_PAIR const *next, int nest)
{
unsigned int tlv1, tlv2;
return 1; /* success */
}
-extern time_t fr_start_time;
-
static int command_uptime(rad_listen_t *listener,
UNUSED int argc, UNUSED char *argv[])
{
static int fr_connection_pool_check(fr_connection_pool_t *pool);
-extern bool check_config;
-
#ifndef NDEBUG
#ifdef HAVE_PTHREAD_H
/* #define PTHREAD_DEBUG (1) */
#ifdef WITH_DETAIL
-extern bool check_config;
-
#define USEC (1000000)
static FR_NAME_NUMBER state_names[] = {
static int command_write_magic(int newfd, listen_socket_t *sock);
#endif
-#ifdef WITH_TCP
-/*
- * We want to avoid opening a UDP proxy listener
- * when all of the home servers are TCP.
- */
-extern bool home_servers_udp;
-#endif
-
-static fr_protocol_t master_listen[RAD_LISTEN_MAX];
+static int last_listener = RAD_LISTEN_MAX;
+#define MAX_LISTENER (256)
+static fr_protocol_t master_listen[MAX_LISTENER];
/*
* Xlat for %{listen:foo}
return 1;
}
-extern bool check_config; /* radiusd.c */
-
static CONF_PARSER performance_config[] = {
{ "skip_duplicate_checks", FR_CONF_OFFSET(PW_TYPE_BOOLEAN, rad_listen_t, nodup), NULL },
struct main_config_t main_config;
extern fr_cond_t *debug_condition;
fr_cond_t *debug_condition;
-extern bool log_dates_utc;
typedef struct cached_config_t {
struct cached_config_t *next;
#include <freeradius-devel/parser.h>
#include <freeradius-devel/rad_assert.h>
-extern bool check_config;
-
typedef struct indexed_modcallable {
rlm_components_t comp;
int idx;
#endif
extern pid_t radius_pid;
-extern bool check_config;
extern fr_cond_t *debug_condition;
static bool spawn_flag = false;
#include <assert.h>
#include <freeradius-devel/log.h>
-static log_lvl_t debug_flag = 0;
+extern log_lvl_t debug_flag;
+log_lvl_t debug_flag = 0;
/**********************************************************************
* Hacks for xlat
RCSID("$Id$")
#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/realms.h>
#include <freeradius-devel/rad_assert.h>
#include <sys/stat.h>
cf_log_err_cs(cs, "Inconsistent ldflag for server pool \"%s\"", name);
return 0;
}
-
- if (pool->server_type != type) {
+
+ /*
+ * GCC throws signed comparison warning here without the cast
+ * very strange...
+ */
+ if ((home_type_t) pool->server_type != type) {
cf_log_err_cs(cs, "Inconsistent home server type for server pool \"%s\"", name);
return 0;
}
#include <sys/ioctl.h>
#endif
-extern bool check_config; /* @todo globals are bad, m'kay? */
-
/*
* Same contents as listen_socket_t.
*/
*
* #define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param)
*/
+DIAG_OFF(pragmas)
DIAG_OFF(disabled-macro-expansion)
#define SET_OPTION(_x, _y)\
do {\