fix a compiler warning, void* versus void(*)(void)
This commit is contained in:
parent
3b823f1179
commit
d51c1e1b7d
|
|
@ -50,7 +50,7 @@ typedef struct INPparseNode {
|
|||
int valueIndex; /* If INP_VAR, index into vars array. */
|
||||
char *funcname; /* If INP_FUNCTION, name of function, */
|
||||
int funcnum; /* ... one of PTF_*, */
|
||||
void *function; /* ... and pointer to the function. */
|
||||
void (*function)(void); /* ... and pointer to the function. */
|
||||
void *data; /* private data for certain functions, currently PTF_PWL */
|
||||
} INPparseNode;
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ extern IFsimulator *ft_sim; /* XXX */
|
|||
static struct op {
|
||||
int number;
|
||||
char *name;
|
||||
void *funcptr;
|
||||
void (*funcptr)(void);
|
||||
} ops[] = {
|
||||
{
|
||||
PT_COMMA, ",", NULL}, {
|
||||
|
|
@ -58,7 +58,7 @@ static struct op {
|
|||
static struct func {
|
||||
char *name;
|
||||
int number;
|
||||
void *funcptr;
|
||||
void (*funcptr)(void);
|
||||
} funcs[] = {
|
||||
{ "abs", PTF_ABS, (void(*)(void)) PTabs } ,
|
||||
{ "acos", PTF_ACOS, (void(*)(void)) PTacos } ,
|
||||
|
|
|
|||
Loading…
Reference in New Issue