Slight improvement
This commit is contained in:
@ -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 (
|
||||
|
Reference in New Issue
Block a user