audio/herrie: store getch() return value in int for KEY_* handling

This commit is contained in:
naddy 2021-07-29 20:37:12 +00:00
parent 58daa4eff1
commit 366677a1a3
2 changed files with 22 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.34 2019/07/12 20:43:34 sthen Exp $
# $OpenBSD: Makefile,v 1.35 2021/07/29 20:37:12 naddy Exp $
COMMENT= minimalistic console-based audio player
DISTNAME= herrie-2.2
REVISION= 6
REVISION= 7
CATEGORIES= audio
HOMEPAGE= http://herrie.info/

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-src_gui_input_c,v 1.1 2021/07/29 20:37:13 naddy Exp $
The return value of getch() must be stored in an int to handle KEY_*
values.
Index: src/gui_input.c
--- src/gui_input.c.orig
+++ src/gui_input.c
@@ -601,9 +601,9 @@ gui_input_loop(void)
int
gui_input_askyesno(const char *question)
{
- char *msg, input;
+ char *msg;
const char *yes, *no;
- int ret;
+ int input, ret;
/* Skip the question if the user really wants so */
if (!config_getopt_bool("gui.input.confirm"))