From 1119da92c3c47a2cb2a48d494f98ff10a6c32619 Mon Sep 17 00:00:00 2001 From: Walter de Jong Date: Thu, 28 Mar 2013 23:10:43 +0100 Subject: server is a struct { address, key } --- support.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'support.h') diff --git a/support.h b/support.h index 9662961..260dea6 100644 --- a/support.h +++ b/support.h @@ -26,9 +26,14 @@ #include -extern struct addrinfo *tac_srv[TAC_PLUS_MAXSERVERS]; -extern char *tac_srv_key[TAC_PLUS_MAXSERVERS]; +typedef struct { + struct addrinfo *addr; + const char *key; +} tacplus_server_t; + +extern tacplus_server_t tac_srv[TAC_PLUS_MAXSERVERS]; extern int tac_srv_no; + extern char *tac_service; extern char *tac_protocol; -- cgit v1.2.3