From: Ralph Corderoy Date: Fri, 25 Aug 2017 21:43:46 +0000 (+0100) Subject: picksbr.c: Specify parameters of nexus's n_action function pointer. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f2552a93d977406ed401dc206d7af889e5840f6e?ds=inline;hp=e605596f06f250775f89ddfe3f7f2c8fcfda1c4e picksbr.c: Specify parameters of nexus's n_action function pointer. Omitting them is obsolescent by modern C standards. --- diff --git a/uip/picksbr.c b/uip/picksbr.c index 169a5bec..90025abd 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -116,7 +116,7 @@ static unsigned char cc[] = { #define pinform if (!talked++) inform struct nexus { - int (*n_action)(); + int (*n_action)(struct nexus *n, FILE *fp, int msgnum, long start, long stop); union { /* for {OR,AND,NOT}action */ @@ -180,7 +180,7 @@ static struct nexus *parse(void); static struct nexus *nexp1(void); static struct nexus *nexp2(void); static struct nexus *nexp3(void); -static struct nexus *newnexus(int (*)(struct nexus *n, +static struct nexus *newnexus(int (*action)(struct nexus *n, FILE *fp, int msgnum, long start, long stop)); static int ORaction(struct nexus *n, FILE *fp, int msgnum,