version 1.1.1.1.2.9, 2011/12/08 17:02:25
|
version 1.1.1.1.2.11, 2011/12/12 09:24:25
|
Line 6
|
Line 6
|
|
|
|
|
sl_config cfg; |
sl_config cfg; |
|
sessions_t Sessions; |
sched_root_task_t *root; |
sched_root_task_t *root; |
|
sqlite3 *acc, *pub; |
|
FILE *logg; |
extern char compiled[], compiledby[], compilehost[]; |
extern char compiled[], compiledby[], compilehost[]; |
static char szCfgName[MAXPATHLEN]; |
static char szCfgName[MAXPATHLEN]; |
int Verbose, Kill; |
int Verbose, Kill; |
Line 54 main(int argc, char **argv)
|
Line 57 main(int argc, char **argv)
|
{ |
{ |
char ch, batch = 0, szStr[STRSIZ]; |
char ch, batch = 0, szStr[STRSIZ]; |
register int i; |
register int i; |
sqlite3 *acc = NULL, *pub = NULL; |
|
FILE *logg = NULL; |
|
int sock = -1, ret = 0; |
int sock = -1, ret = 0; |
struct passwd *pass; |
struct passwd *pass; |
struct sigaction sa; |
struct sigaction sa; |
|
|
|
TAILQ_INIT(&Sessions); |
|
|
strlcpy(szCfgName, DEFAULT_CONFIG, sizeof szCfgName); |
strlcpy(szCfgName, DEFAULT_CONFIG, sizeof szCfgName); |
while ((ch = getopt(argc, argv, "hvbc:")) != -1) |
while ((ch = getopt(argc, argv, "hvbc:")) != -1) |