mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-26 05:51:08 +02:00
36974: fix some functions with empty argument lists
This commit is contained in:
parent
81fa9fd25a
commit
d45a68c546
6 changed files with 17 additions and 11 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-10-27 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 36974: Src/Modules/zftp.c, Src/Zle/complist.c,
|
||||
Src/Zle/computil.c, Src/Zle/zle_thingy.c, Src/parse.c: fix empty
|
||||
argument lists.
|
||||
|
||||
2015-10-26 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 36906: Kamil Dudka <kdudka@redhat.com>: Src/mem.c:
|
||||
|
|
|
@ -409,7 +409,7 @@ zfalarm(int tmout)
|
|||
|
||||
/**/
|
||||
static void
|
||||
zfpipe()
|
||||
zfpipe(void)
|
||||
{
|
||||
/* Just ignore SIGPIPE and rely on getting EPIPE from the write. */
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
@ -450,7 +450,7 @@ zfunalarm(void)
|
|||
|
||||
/**/
|
||||
static void
|
||||
zfunpipe()
|
||||
zfunpipe(void)
|
||||
{
|
||||
if (sigtrapped[SIGPIPE]) {
|
||||
if (siglists[SIGPIPE] || (sigtrapped[SIGPIPE] & ZSIG_FUNC))
|
||||
|
@ -1298,7 +1298,7 @@ zfstarttrans(char *nam, int recv, off_t sz)
|
|||
|
||||
/**/
|
||||
static void
|
||||
zfendtrans()
|
||||
zfendtrans(void)
|
||||
{
|
||||
zfunsetparam("ZFTP_SIZE");
|
||||
zfunsetparam("ZFTP_FILE");
|
||||
|
@ -2834,7 +2834,7 @@ newsession(char *nm)
|
|||
/* Save the existing session: this just means saving the parameters. */
|
||||
|
||||
static void
|
||||
savesession()
|
||||
savesession(void)
|
||||
{
|
||||
char **ps, **pd, *val;
|
||||
|
||||
|
|
|
@ -499,7 +499,7 @@ filecol(char *col)
|
|||
*/
|
||||
|
||||
static void
|
||||
getcols()
|
||||
getcols(void)
|
||||
{
|
||||
char *s;
|
||||
int i, l;
|
||||
|
@ -602,7 +602,7 @@ zcoff(void)
|
|||
|
||||
|
||||
static void
|
||||
initiscol()
|
||||
initiscol(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1909,7 +1909,7 @@ singlecalc(int *cp, int l, int *lcp)
|
|||
}
|
||||
|
||||
static void
|
||||
singledraw()
|
||||
singledraw(void)
|
||||
{
|
||||
Cmgroup g;
|
||||
int mc1, mc2, ml1, ml2, md1, md2, mcc1, mcc2, lc1, lc2, t1, t2;
|
||||
|
|
|
@ -185,7 +185,7 @@ cd_group(int maxg)
|
|||
* descriptions. */
|
||||
|
||||
static void
|
||||
cd_calc()
|
||||
cd_calc(void)
|
||||
{
|
||||
Cdset set;
|
||||
Cdstr str;
|
||||
|
@ -236,7 +236,7 @@ cd_sort(const void *a, const void *b)
|
|||
}
|
||||
|
||||
static int
|
||||
cd_prep()
|
||||
cd_prep(void)
|
||||
{
|
||||
Cdrun run, *runp;
|
||||
Cdset set;
|
||||
|
|
|
@ -626,7 +626,7 @@ bin_zle_complete(char *name, char **args, UNUSED(Options ops), UNUSED(char func)
|
|||
|
||||
/**/
|
||||
static int
|
||||
zle_usable()
|
||||
zle_usable(void)
|
||||
{
|
||||
return zleactive && !incompctlfunc && !incompfunc
|
||||
#if 0
|
||||
|
|
|
@ -530,7 +530,7 @@ empty_eprog(Eprog p)
|
|||
}
|
||||
|
||||
static void
|
||||
clear_hdocs()
|
||||
clear_hdocs(void)
|
||||
{
|
||||
struct heredocs *p, *n;
|
||||
|
||||
|
|
Loading…
Reference in a new issue