mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 12:31:26 +01:00
Fix some compiler warnings in Zle
This commit is contained in:
parent
32473f59a3
commit
15222bcdcb
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-09-30 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 33293: Src/Zle/compctl.c, Src/Zle/zle_refresh.c: fix warnings
|
||||
from swish new compilers with a contemporary outlook.
|
||||
|
||||
2014-09-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 33286: Src/exec.c, Test/A04redirect.ztst: handle redirections
|
||||
|
|
|
@ -3416,7 +3416,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
|
|||
*npp++ = tp;
|
||||
pp++;
|
||||
}
|
||||
*npp = '\0';
|
||||
*npp = NULL;
|
||||
}
|
||||
}
|
||||
if (!dirs) {
|
||||
|
|
|
@ -258,7 +258,6 @@ static const REFRESH_ELEMENT zr_cr = { ZWC('\r'), 0 };
|
|||
static const REFRESH_ELEMENT zr_dt = { ZWC('.'), 0 };
|
||||
static const REFRESH_ELEMENT zr_nl = { ZWC('\n'), 0 };
|
||||
static const REFRESH_ELEMENT zr_sp = { ZWC(' '), 0 };
|
||||
static const REFRESH_ELEMENT zr_ht = { ZWC('\t'), 0 };
|
||||
static const REFRESH_ELEMENT zr_zr = { ZWC('\0'), 0 };
|
||||
|
||||
/*
|
||||
|
@ -429,7 +428,7 @@ get_region_highlight(UNUSED(Param pm))
|
|||
digbuf1, digbuf2);
|
||||
(void)output_highlight(rhp->atr, *arrp + strlen(*arrp));
|
||||
}
|
||||
*arrp = '\0';
|
||||
*arrp = NULL;
|
||||
return retarr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue