corrected an incompatiblity with ANSI C (function pointer cast) M.Z.

This commit is contained in:
cvs
2002-10-30 08:25:49 +00:00
parent a14b12b726
commit 269da71be2
2 changed files with 5 additions and 3 deletions

View File

@ -15,7 +15,8 @@ OBJ= el734_utility.o asynsrv_utility.o stredit.o \
#CFLAGS= -I/usr/local/include -I. -I../ -DLINUX -g -c
#------------ for DigitalUnix
CC=cc
CFLAGS= -I/data/koenneck/include -I. -I../ -std1 -g -c
CFLAGS= -I. -I../ -std1 -g -c
#CFLAGS= -I/data/koenneck/include -I. -I../ -std1 -g -c
#------------ for DigitalUnix with Fortify
## CC=cc
## CFLAGS= -DFORTIFY -I. -I../ -std1 -g -c

View File

@ -836,7 +836,8 @@
va_list ap; /* Pointer to variable args */
char *txt_ptr;
int intval;
/*
typedef void (*IdleHandler)(int,int);
/*
** Pre-set the routinename (in case of error)
*/
if (AsynSrv_errcode == 0 && AsynSrv_call_depth < 5) {
@ -876,7 +877,7 @@
}
memcpy (asyn_info->eot, my_eot, 4);
}else if (strcmp (txt_ptr, "idleHdl") == 0) { /* MZ. */
asyn_info->idleHandler = (void (*) (int, int)) va_arg (ap, void *);
asyn_info->idleHandler = va_arg (ap, IdleHandler);
}else {
AsynSrv_errcode = ASYNSRV__BAD_PAR;
return False;