From 6ebc87a7e0c839d7cb69d3cb7fb318cf5ddece16 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 24 Mar 2019 21:39:30 -0400 Subject: Fix default config yes/no options --- src/fujiconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fujiconf.c b/src/fujiconf.c index e2305ae..cde1b97 100644 --- a/src/fujiconf.c +++ b/src/fujiconf.c @@ -38,7 +38,7 @@ char baud_bytes[] = { RS_BAUD_1200, RS_BAUD_2400, RS_BAUD_4800, RS_BAUD_9600, RS char max_baud = sizeof(baud_bytes); static void get_conf_color(char *name, char *color, char dflt); -static char get_yesno(char *prompt, char dflt); +static char get_yesno(char *prompt, int dflt); void save_config(void); static void bell() { @@ -292,7 +292,7 @@ static void get_conf_color(char *name, char *color, char dflt) { *color = atoi(buf); } -static char get_yesno(char *prompt, char dflt) { +static char get_yesno(char *prompt, int dflt) { char buf[5]; printf("%s [%c/%c]: ", -- cgit v1.2.3