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

@@ -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;