1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 22:32:12 +02:00

37874: remove unused function argument

This commit is contained in:
Jun-ichi Takimoto 2016-02-04 08:23:02 +09:00
parent a4020e10a3
commit 2175399b70
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,7 @@
2016-02-04 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 37874: Src/Builtins/sched.c: remove unused function argument.
2016-02-03 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 37868: Src/Modules/curses.c, Src/Modules/param_private.c,

View file

@ -58,7 +58,7 @@ static int schedcmdtimed;
/**/
static void
schedaddtimed(time_t t)
schedaddtimed(void)
{
/*
* The following code shouldn't be necessary and indicates
@ -140,7 +140,7 @@ checksched(void)
*/
DPUTS(timedfns && firstnode(timedfns),
"BUG: already timed fn (1)");
schedaddtimed(schedcmds->time);
schedaddtimed();
}
}
}
@ -180,7 +180,7 @@ bin_sched(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
schedcmds = sch->next;
if (schedcmds) {
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (2)");
schedaddtimed(schedcmds->time);
schedaddtimed();
}
}
zsfree(sch->cmd);
@ -317,7 +317,7 @@ bin_sched(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
sch->next = schedcmds;
schedcmds = sch;
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (3)");
schedaddtimed(t);
schedaddtimed();
} else {
for (sch2 = schedcmds;
sch2->next && sch2->next->time < sch->time;
@ -330,7 +330,7 @@ bin_sched(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
sch->next = NULL;
schedcmds = sch;
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (4)");
schedaddtimed(t);
schedaddtimed();
}
return 0;
}