mirror of
https://github.com/openbsd/src.git
synced 2026-04-30 09:06:11 +00:00
Improve externs for KEYMAPE()
Gentoo tried to compile mg with -flto, and in doing so they discovered that some extern in .c files resulted in the use of a wrongly sized anonymous struct. Nowadays the KEYMAP and KEYMAPE() kludge should probably be replaced with a flexible array member in a single type, but that's a slightly bigger change that requires more thinking than this diff. From the Gentoo bug tracker via Han Boetes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: dired.c,v 1.104 2024/06/04 06:51:15 op Exp $ */
|
||||
/* $OpenBSD: dired.c,v 1.105 2025/08/20 03:10:45 tb Exp $ */
|
||||
|
||||
/* This file is in the public domain. */
|
||||
|
||||
@@ -60,7 +60,9 @@ static int createlist(struct buffer *);
|
||||
static void redelete(struct buffer *);
|
||||
static char *findfname(struct line *, char *);
|
||||
|
||||
extern struct keymap_s helpmap, cXmap, metamap;
|
||||
extern struct KEYMAPE (2) helpmap;
|
||||
extern struct KEYMAPE (6) cXmap;
|
||||
extern struct KEYMAPE (8) metamap;
|
||||
|
||||
const char DDELCHAR = 'D';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user