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);