mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
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 Differential Revision: https://reviews.freebsd.org/D20964 Approved by: portmgr (miwi@)
14 lines
580 B
C
14 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);
|