Relax code fixes

This commit is contained in:
Michiel Broek 2001-12-23 21:05:40 +00:00
parent cee2199b43
commit 277ddd0f30
3 changed files with 9 additions and 7 deletions

View File

@ -47,7 +47,6 @@
*/ */
#define MAXTASKS 10 #define MAXTASKS 10
#define SLOWRUN 20 #define SLOWRUN 20
#define PAUSETIME 3
#define TMPNAME "TMP." #define TMPNAME "TMP."
#define LCKNAME "LOCKTASK" #define LCKNAME "LOCKTASK"
#define ICMP_BASEHDR_LEN 8 #define ICMP_BASEHDR_LEN 8

View File

@ -1,8 +1,7 @@
/***************************************************************************** /*****************************************************************************
* *
* File ..................: mbtask/taskstat.c * $Id$
* Purpose ...............: Keep track of server status * Purpose ...............: Keep track of server status
* Last modification date : 31-Oct-2001
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2001 * Copyright (C) 1997-2001
@ -49,6 +48,7 @@ int s_msglink = FALSE;
int s_newnews = FALSE; int s_newnews = FALSE;
int s_bbsopen = FALSE; int s_bbsopen = FALSE;
extern int UPSalarm; extern int UPSalarm;
extern int ptimer;
@ -336,8 +336,6 @@ char *getseq(void)
int sem_set(char *sem, int value) int sem_set(char *sem, int value)
{ {
int rc = TRUE;
tasklog('s', "sem_set(%s, %s)", sem, value?"TRUE":"FALSE"); tasklog('s', "sem_set(%s, %s)", sem, value?"TRUE":"FALSE");
if (!strcmp(sem, "scanout")) { if (!strcmp(sem, "scanout")) {
@ -358,9 +356,10 @@ int sem_set(char *sem, int value)
} else if (!strcmp(sem, "reqindex")) { } else if (!strcmp(sem, "reqindex")) {
s_reqindex = value; s_reqindex = value;
} else { } else {
rc = FALSE; return FALSE;
} }
return rc; ptimer = PAUSETIME;
return TRUE;
} }

View File

@ -1,6 +1,10 @@
/* $Id$ */
#ifndef _TASKSTAT_H #ifndef _TASKSTAT_H
#define _TASKSTAT_H #define _TASKSTAT_H
#define PAUSETIME 3
void status_init(void); /* Initialize status module */ void status_init(void); /* Initialize status module */
void stat_inc_clients(void); /* Increase connected clients */ void stat_inc_clients(void); /* Increase connected clients */
void stat_dec_clients(void); /* Decrease connected clients */ void stat_dec_clients(void); /* Decrease connected clients */