Add prototypes

Add prototypes/move prototypes to header files.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10470
This commit is contained in:
Arvind Sankar
2020-06-11 16:38:25 -04:00
committed by Brian Behlendorf
parent 60356b1a21
commit 0ce2de637b
26 changed files with 169 additions and 163 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ typedef struct ace_list {
* returns (-1 = less than, 0 = equal, 1 = greater than
*/
void
ksort(caddr_t v, int n, int s, int (*f)())
ksort(caddr_t v, int n, int s, int (*f)(void *, void *))
{
int g, i, j, ii;
unsigned int *p1, *p2;
+2 -1
View File
@@ -52,7 +52,8 @@ typedef struct callb {
char c_flag; /* info about the callb state */
uchar_t c_class; /* this callb's class */
kcondvar_t c_done_cv; /* signal callb completion */
boolean_t (*c_func)(); /* cb function: returns true if ok */
boolean_t (*c_func)(void *, int);
/* cb function: returns true if ok */
void *c_arg; /* arg to c_func */
char c_name[CB_MAXNAME+1]; /* debug:max func name length */
} callb_t;