ash: tiny style fixes
This commit is contained in:
parent
5cedb75aa7
commit
e5570da2cf
24
shell/ash.c
24
shell/ash.c
@ -228,7 +228,8 @@ static void sh_warnx(const char *, ...);
|
|||||||
|
|
||||||
#if ENABLE_ASH_OPTIMIZE_FOR_SIZE
|
#if ENABLE_ASH_OPTIMIZE_FOR_SIZE
|
||||||
static void
|
static void
|
||||||
inton(void) {
|
inton(void)
|
||||||
|
{
|
||||||
if (--suppressint == 0 && intpending) {
|
if (--suppressint == 0 && intpending) {
|
||||||
onint();
|
onint();
|
||||||
}
|
}
|
||||||
@ -2217,7 +2218,8 @@ unaliascmd(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct alias *
|
static struct alias *
|
||||||
freealias(struct alias *ap) {
|
freealias(struct alias *ap)
|
||||||
|
{
|
||||||
struct alias *next;
|
struct alias *next;
|
||||||
|
|
||||||
if (ap->flag & ALIASINUSE) {
|
if (ap->flag & ALIASINUSE) {
|
||||||
@ -2233,7 +2235,8 @@ freealias(struct alias *ap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
printalias(const struct alias *ap) {
|
printalias(const struct alias *ap)
|
||||||
|
{
|
||||||
out1fmt("%s=%s\n", ap->name, single_quote(ap->val));
|
out1fmt("%s=%s\n", ap->name, single_quote(ap->val));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2548,7 +2551,8 @@ exraise(int e)
|
|||||||
* defensive programming.)
|
* defensive programming.)
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
onint(void) {
|
onint(void)
|
||||||
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
intpending = 0;
|
intpending = 0;
|
||||||
@ -4539,7 +4543,8 @@ static char * preglob(const char *pattern, int quoted, int flag)
|
|||||||
|
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
esclen(const char *start, const char *p) {
|
esclen(const char *start, const char *p)
|
||||||
|
{
|
||||||
size_t esc = 0;
|
size_t esc = 0;
|
||||||
|
|
||||||
while (p > start && *--p == CTLESC) {
|
while (p > start && *--p == CTLESC) {
|
||||||
@ -5247,7 +5252,8 @@ evalvar(char *p, int flag)
|
|||||||
* Put a string on the stack.
|
* Put a string on the stack.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
memtodest(const char *p, size_t len, int syntax, int quotes) {
|
memtodest(const char *p, size_t len, int syntax, int quotes)
|
||||||
|
{
|
||||||
char *q = expdest;
|
char *q = expdest;
|
||||||
|
|
||||||
q = makestrspace(len * 2, q);
|
q = makestrspace(len * 2, q);
|
||||||
@ -7722,7 +7728,8 @@ xtcsetpgrp(int fd, pid_t pgrp)
|
|||||||
#endif /* JOBS */
|
#endif /* JOBS */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
getstatus(struct job *job) {
|
getstatus(struct job *job)
|
||||||
|
{
|
||||||
int status;
|
int status;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
@ -9661,7 +9668,8 @@ command(void)
|
|||||||
|
|
||||||
|
|
||||||
static union node *
|
static union node *
|
||||||
simplecmd(void) {
|
simplecmd(void)
|
||||||
|
{
|
||||||
union node *args, **app;
|
union node *args, **app;
|
||||||
union node *n = NULL;
|
union node *n = NULL;
|
||||||
union node *vars, **vpp;
|
union node *vars, **vpp;
|
||||||
|
Loading…
Reference in New Issue
Block a user