From 6e27eeeda9a59b023d63397eb1f0cfbaa1d72ae3 Mon Sep 17 00:00:00 2001 From: Chuck Coffing Date: Sun, 31 Dec 2023 21:56:07 -0800 Subject: [PATCH] tputs expects fn that returns int --- elkscmd/screen/ansi.c | 3 ++- elkscmd/screen/ansi.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/elkscmd/screen/ansi.c b/elkscmd/screen/ansi.c index 48bf36823..89c799bb1 100644 --- a/elkscmd/screen/ansi.c +++ b/elkscmd/screen/ansi.c @@ -1092,10 +1092,11 @@ RestoreCursor(void) return 0; } -static void +static int CountChars(int c) { StrCost++; + return 0; } static int diff --git a/elkscmd/screen/ansi.h b/elkscmd/screen/ansi.h index 5848604ab..8a6c6aec2 100644 --- a/elkscmd/screen/ansi.h +++ b/elkscmd/screen/ansi.h @@ -28,7 +28,7 @@ static int MapCharset(int n); static void NewCharset(int old, int new); static int SaveCursor(void); static int RestoreCursor(void); -static void CountChars(int c); +static int CountChars(int c); static int CalcCost(char *s); static void Goto(int y1, int x1, int y2, int x2); static int RewriteCost(int y, int x1, int x2);