]> diplodocus.org Git - nmh/commitdiff
picksbr.c: Specify parameters of nexus's n_action function pointer.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 25 Aug 2017 21:43:46 +0000 (22:43 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 26 Aug 2017 10:45:10 +0000 (11:45 +0100)
Omitting them is obsolescent by modern C standards.

uip/picksbr.c

index 169a5bec28bda4de84564e765b012d6cf9de129e..90025abd8a740141da91cfa4b1257d97b9e18065 100644 (file)
@@ -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,