cmdcount_t

Add a type to force g.{command_count,last_command_count,multi} to have the
same type (because cmd.c: g.multi = g.command_count;) and some resulting
cleanup.
This commit is contained in:
nhkeni
2022-02-27 19:57:16 -05:00
parent ab16cf83b1
commit 16ea5e7fa6
2 changed files with 2 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ reset_occupations(void)
* function times out by its own means.
*/
void
set_occupation(int (*fn)(void), const char *txt, int xtime)
set_occupation(int (*fn)(void), const char *txt, cmdcount_t xtime)
{
if (xtime) {
g.occupation = timed_occupation;