From 5070ecc9b299f90343f7e7f80f773040b96aca4d Mon Sep 17 00:00:00 2001 From: cvs Date: Tue, 7 Nov 2000 12:13:34 +0000 Subject: [PATCH] Slight improvement --- sinqhm/FOCUS_gbl.h | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/sinqhm/FOCUS_gbl.h b/sinqhm/FOCUS_gbl.h index 942e409d..3fe89d4f 100755 --- a/sinqhm/FOCUS_gbl.h +++ b/sinqhm/FOCUS_gbl.h @@ -14,6 +14,10 @@ #ifndef uchar #define uchar unsigned char #endif + +#ifndef MAX_SLV +#define MAX_SLV 3 +#endif /* **==================== Global Variables ====================================== ** Note: @@ -96,14 +100,20 @@ uint FS_sem_tmo; uint FS_use_sem_tmo; /* If True (== 1), enable sem timeouts */ - int FS_n_slaves; /* The number of slaves */ - char *FS_slaves[3]; /* The names of the slaves */ - struct sockaddr_in FS_rmt_socknam[3]; /* Internet addresses of our slaves */ - uint FS_lo_det[3]; /* # of first det'r on each slave */ - uint FS_hi_det[3]; /* # of last det'r on each slave */ - int FS_slv_active[3]; /* True if slave has been cfg'd */ - int FS_skt[MAX_CLIENTS][3]; /* Client skts for children */ - int FS_pkt_siz[MAX_CLIENTS][3]; /* Packet sizes for children */ + int FS_n_slaves; /* The number of slaves */ + char *FS_slaves[MAX_SLV]; /* The names of the slaves */ + struct sockaddr_in FS_rmt_socknam[MAX_SLV]; /* Internet addresses of .. + ** .. our slaves */ + uint FS_lo_det[MAX_SLV]; /* # of first det'r on each .. + ** .. slave */ + uint FS_hi_det[MAX_SLV]; /* # of last det'r on each .. + ** .. slave */ + int FS_slv_active[MAX_SLV]; /* True if slave has been .. + ** .. cfg'd */ + int FS_skt[MAX_CLIENTS+1][MAX_SLV]; /* Client skts for .. + ** .. children */ + int FS_pkt_siz[MAX_CLIENTS+1][MAX_SLV]; /* Packet sizes .. + ** .. for childrn */ /*========================== Define the function prototypes ================*/ int chk_config_alloc (