Updated configure scripts

This commit is contained in:
Michiel Broek 2003-12-23 18:33:42 +00:00
parent b70a0945a7
commit 1d96f106c5
4 changed files with 5 additions and 25 deletions

View File

@ -43,9 +43,9 @@
#define LCKPREFIX LOCKDIR"/LCK.." #define LCKPREFIX LOCKDIR"/LCK.."
#define LCKTMP LOCKDIR"/TMP." #define LCKTMP LOCKDIR"/TMP."
#ifdef DONT_HAVE_PID_T //#ifdef DONT_HAVE_PID_T
#define pid_t int //#define pid_t int
#endif //#endif

View File

@ -1,11 +1,10 @@
/***************************************************************************** /*****************************************************************************
* *
* File ..................: mbmail/lhash.c * $Id$
* Purpose ...............: MBSE BBS Mail Gate * Purpose ...............: MBSE BBS Mail Gate
* Last modification date : 28-Aug-2000
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2000 * Copyright (C) 1997-2003
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -223,9 +222,7 @@ char *lh_insert(LHASH *lh, char *data)
return(NULL); return(NULL);
nn->data=data; nn->data=data;
nn->next=NULL; nn->next=NULL;
//#ifndef NO_HASH_COMP
nn->hash=hash; nn->hash=hash;
//#endif
*rn=nn; *rn=nn;
ret=NULL; ret=NULL;
lh->num_insert++; lh->num_insert++;
@ -298,8 +295,6 @@ char *lh_retrieve(LHASH *lh, char *data)
void lh_doall(LHASH *lh, void (*func)(char *, char *)) void lh_doall(LHASH *lh, void (*func)(char *, char *))
//LHASH *lh;
//void (*func)();
{ {
lh_doall_arg(lh,func,NULL); lh_doall_arg(lh,func,NULL);
} }
@ -307,9 +302,6 @@ void lh_doall(LHASH *lh, void (*func)(char *, char *))
void lh_doall_arg(LHASH *lh, void(*func)(char *, char *), char *arg) void lh_doall_arg(LHASH *lh, void(*func)(char *, char *), char *arg)
// LHASH *lh;
//void (*func)();
//char *arg;
{ {
int i; int i;
LHASH_NODE *a,*n; LHASH_NODE *a,*n;
@ -348,12 +340,7 @@ static void expand(LHASH *lh)
for (np= *n1; np != NULL; ) for (np= *n1; np != NULL; )
{ {
//#ifndef NO_HASH_COMP
hash=np->hash; hash=np->hash;
//#else
// hash=(*(lh->hash))(np->data);
// lh->num_hash_calls++;
//#endif
if ((hash%nni) != p) if ((hash%nni) != p)
{ /* move it */ { /* move it */
*n1= (*n1)->next; *n1= (*n1)->next;
@ -447,14 +434,12 @@ static LHASH_NODE **getrn(LHASH *lh, char *data, unsigned long *rhash)
ret= &(lh->b[(int)nn]); ret= &(lh->b[(int)nn]);
for (n1= *ret; n1 != NULL; n1=n1->next) for (n1= *ret; n1 != NULL; n1=n1->next)
{ {
//#ifndef NO_HASH_COMP
lh->num_hash_comps++; lh->num_hash_comps++;
if (n1->hash != hash) if (n1->hash != hash)
{ {
ret= &(n1->next); ret= &(n1->next);
continue; continue;
} }
//#endif
lh->num_comp_calls++; lh->num_comp_calls++;
if ((*cf)(n1->data,data) == 0) if ((*cf)(n1->data,data) == 0)
break; break;

View File

@ -120,9 +120,7 @@ int sched_run = FALSE; /* Scheduler running */
/* /*
* Global thread vaiables * Global thread vaiables
*/ */
int thr_id[NUM_THREADS]; /* thread ID's */
pthread_t p_thread[NUM_THREADS]; /* thread's structure */ pthread_t p_thread[NUM_THREADS]; /* thread's structure */
// pthread_mutex_t p_mutex = PTHREAD_MUTEX_INITIALIZER; /* Ping mutex */

View File

@ -228,9 +228,6 @@ extern char *strerror();
# endif # endif
#endif #endif
// #ifndef HAVE_SNPRINTF
// #include "snprintf.h"
// #endif
/* /*
* string to use for the pw_passwd field in /etc/passwd when using * string to use for the pw_passwd field in /etc/passwd when using