corrected an incompatiblity with ANSI C (function pointer cast) M.Z.
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user