aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-03-24 21:39:30 -0400
committerB. Watson <yalhcru@gmail.com>2019-03-24 21:40:43 -0400
commit6ebc87a7e0c839d7cb69d3cb7fb318cf5ddece16 (patch)
tree1cda193085045eaba225dd2fca09a50a5d0de18d /src
parent4d1b4df43b980bd7ac8f2e40d6476bcdca8bf0b6 (diff)
downloadfujichat-6ebc87a7e0c839d7cb69d3cb7fb318cf5ddece16.tar.gz
Fix default config yes/no options
Diffstat (limited to 'src')
-rw-r--r--src/fujiconf.c4
1 files changed, 2 insertions, 2 deletions
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]: ",