summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--radsecproxy.h12
1 files 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);