From 2311c004d373668664e36a0094cee74b86551def Mon Sep 17 00:00:00 2001 From: venaas Date: Wed, 9 May 2007 11:31:22 +0000 Subject: Reordered radsecproxy.h git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@77 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/radsecproxy.h b/radsecproxy.h index fd36b03..0451407 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -6,12 +6,6 @@ * copyright notice and this permission notice appear in all copies. */ -#define RADLEN(x) ntohs(((uint16_t *)(x))[1]) - -#define SOCKADDR_SIZE(addr) ((addr).ss_family == AF_INET ? \ - sizeof(struct sockaddr_in) : \ - sizeof(struct sockaddr_in6)) - #define DEBUG_LEVEL 2 #define CONFIG_MAIN "/etc/radsecproxy/radsecproxy.conf" @@ -119,6 +113,12 @@ struct server { pthread_cond_t newrq_cond; }; +#define RADLEN(x) ntohs(((uint16_t *)(x))[1]) + +#define SOCKADDR_SIZE(addr) ((addr).ss_family == AF_INET ? \ + sizeof(struct sockaddr_in) : \ + sizeof(struct sockaddr_in6)) + void errx(char *format, ...); void err(char *format, ...); char *stringcopy(char *s, int len); -- cgit v1.1