Skip to content

Commit

Permalink
tputs expects fn that returns int
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffing committed Jan 1, 2024
1 parent d078904 commit 6e27eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion elkscmd/screen/ansi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,10 +1092,11 @@ RestoreCursor(void)
return 0;
}

static void
static int
CountChars(int c)
{
StrCost++;
return 0;
}

static int
Expand Down
2 changes: 1 addition & 1 deletion elkscmd/screen/ansi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e27eee

Please sign in to comment.