Slight improvement
This commit is contained in:
@ -14,6 +14,10 @@
|
|||||||
#ifndef uchar
|
#ifndef uchar
|
||||||
#define uchar unsigned char
|
#define uchar unsigned char
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAX_SLV
|
||||||
|
#define MAX_SLV 3
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
**==================== Global Variables ======================================
|
**==================== Global Variables ======================================
|
||||||
** Note:
|
** Note:
|
||||||
@ -96,14 +100,20 @@
|
|||||||
uint FS_sem_tmo;
|
uint FS_sem_tmo;
|
||||||
uint FS_use_sem_tmo; /* If True (== 1), enable sem timeouts */
|
uint FS_use_sem_tmo; /* If True (== 1), enable sem timeouts */
|
||||||
|
|
||||||
int FS_n_slaves; /* The number of slaves */
|
int FS_n_slaves; /* The number of slaves */
|
||||||
char *FS_slaves[3]; /* The names of the slaves */
|
char *FS_slaves[MAX_SLV]; /* The names of the slaves */
|
||||||
struct sockaddr_in FS_rmt_socknam[3]; /* Internet addresses of our slaves */
|
struct sockaddr_in FS_rmt_socknam[MAX_SLV]; /* Internet addresses of ..
|
||||||
uint FS_lo_det[3]; /* # of first det'r on each slave */
|
** .. our slaves */
|
||||||
uint FS_hi_det[3]; /* # of last det'r on each slave */
|
uint FS_lo_det[MAX_SLV]; /* # of first det'r on each ..
|
||||||
int FS_slv_active[3]; /* True if slave has been cfg'd */
|
** .. slave */
|
||||||
int FS_skt[MAX_CLIENTS][3]; /* Client skts for children */
|
uint FS_hi_det[MAX_SLV]; /* # of last det'r on each ..
|
||||||
int FS_pkt_siz[MAX_CLIENTS][3]; /* Packet sizes for children */
|
** .. 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 ================*/
|
/*========================== Define the function prototypes ================*/
|
||||||
|
|
||||||
int chk_config_alloc (
|
int chk_config_alloc (
|
||||||
|
Reference in New Issue
Block a user