summaryrefslogtreecommitdiff
path: root/server/zserver.h
diff options
context:
space:
mode:
authorGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-23 23:54:01 -0500
committerGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-03-18 19:21:16 -0400
commit1e7b25b82c4461a40cf9589beccce5611df9de3a (patch)
tree99765918b063443d7211c001ccb5291c3aed93d0 /server/zserver.h
parent4f9ad057ca1391dac5d3ae3b35563185abae36e3 (diff)
Make ZRealm.srvrs be an array of pointers
With asynchronous name resolution and timers, we need to keep around pointers to individual other-realm servers. This, we cannot move existing servers around in memory without causing data corruption. But, realm_init() wants to reallocate the srvrs array for a realm when adding servers. Therefore, to allow ZRealm.srvrs to be reallocated without changing the addresses of existing servers, it is converted from an array of servers to an array of pointers to servers.
Diffstat (limited to 'server/zserver.h')
-rw-r--r--server/zserver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/zserver.h b/server/zserver.h
index 822a90c..734e4ed 100644
--- a/server/zserver.h
+++ b/server/zserver.h
@@ -126,7 +126,7 @@ struct _ZRealm {
String *namestr; /* realm's name */
char *name; /* always namestr->string */
int count;
- ZRealm_server *srvrs;
+ ZRealm_server **srvrs;
int idx; /* which server we are connected to */
Destlist *subs; /* what their clients sub to */
Destlist *remsubs; /* our subs on their end */