ports/sysutils/am-utils/files/patch-amd_amd.h
Cy Schubert 1199e9e38c Fix two mismatches between function declaration and definition.
In both cases, function pointer arguments were inconsistently declared
and the result worked because of C's odd rules around function pointer
(de)references.  With a stricter compiler these fail to compile.

Reported by:	pfg@
Obtained from:	base r350049 by brooks@ from CheriBSD
MFH:		2019Q3
Differential Revision:	https://reviews.freebsd.org/D20964
2019-08-15 02:21:57 +00:00

13 lines
580 B
C

Index: amd/amd.h
===================================================================
--- amd/amd.h (revision 350048)
+++ amd/amd.h (revision 350049)
@@ -625,7 +625,7 @@
extern void mapc_add_kv(mnt_map *, char *, char *);
extern mnt_map *mapc_find(char *, char *, const char *, const char *);
extern void mapc_free(opaque_t);
-extern int mapc_keyiter(mnt_map *, key_fun, opaque_t);
+extern int mapc_keyiter(mnt_map *, key_fun *, opaque_t);
extern void mapc_reload(void);
extern int mapc_search(mnt_map *, char *, char **);
extern void mapc_showtypes(char *buf, size_t l);