mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
37874: remove unused function argument
This commit is contained in:
parent
a4020e10a3
commit
2175399b70
2 changed files with 9 additions and 5 deletions
|
@ -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>
|
2016-02-03 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
* 37868: Src/Modules/curses.c, Src/Modules/param_private.c,
|
* 37868: Src/Modules/curses.c, Src/Modules/param_private.c,
|
||||||
|
|
|
@ -58,7 +58,7 @@ static int schedcmdtimed;
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
static void
|
static void
|
||||||
schedaddtimed(time_t t)
|
schedaddtimed(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* The following code shouldn't be necessary and indicates
|
* The following code shouldn't be necessary and indicates
|
||||||
|
@ -140,7 +140,7 @@ checksched(void)
|
||||||
*/
|
*/
|
||||||
DPUTS(timedfns && firstnode(timedfns),
|
DPUTS(timedfns && firstnode(timedfns),
|
||||||
"BUG: already timed fn (1)");
|
"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;
|
schedcmds = sch->next;
|
||||||
if (schedcmds) {
|
if (schedcmds) {
|
||||||
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (2)");
|
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (2)");
|
||||||
schedaddtimed(schedcmds->time);
|
schedaddtimed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
zsfree(sch->cmd);
|
zsfree(sch->cmd);
|
||||||
|
@ -317,7 +317,7 @@ bin_sched(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
|
||||||
sch->next = schedcmds;
|
sch->next = schedcmds;
|
||||||
schedcmds = sch;
|
schedcmds = sch;
|
||||||
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (3)");
|
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (3)");
|
||||||
schedaddtimed(t);
|
schedaddtimed();
|
||||||
} else {
|
} else {
|
||||||
for (sch2 = schedcmds;
|
for (sch2 = schedcmds;
|
||||||
sch2->next && sch2->next->time < sch->time;
|
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;
|
sch->next = NULL;
|
||||||
schedcmds = sch;
|
schedcmds = sch;
|
||||||
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (4)");
|
DPUTS(timedfns && firstnode(timedfns), "BUG: already timed fn (4)");
|
||||||
schedaddtimed(t);
|
schedaddtimed();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue