diff options
author | Cy Schubert <cy@FreeBSD.org> | 2019-08-15 02:21:57 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2019-08-15 02:21:57 +0000 |
commit | 1199e9e38c8feba9f5e4311faab44f5e3c33f17d (patch) | |
tree | 5928c20b9723d4658e0b3171aa9a88d08e285863 /sysutils/am-utils/files/patch-amd_amd.h | |
parent | Update to version 1.2.5 (diff) |
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
Notes
Notes:
svn path=/head/; revision=508980
Diffstat (limited to 'sysutils/am-utils/files/patch-amd_amd.h')
-rw-r--r-- | sysutils/am-utils/files/patch-amd_amd.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/am-utils/files/patch-amd_amd.h b/sysutils/am-utils/files/patch-amd_amd.h new file mode 100644 index 000000000000..3537e8113cdb --- /dev/null +++ b/sysutils/am-utils/files/patch-amd_amd.h @@ -0,0 +1,13 @@ +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); |