lint: fix va_end_missing in cpu/native/syscalls.c
This commit is contained in:
parent
d1775a1ad1
commit
0e065cff2c
@ -320,6 +320,7 @@ void err(int eval, const char *fmt, ...)
|
|||||||
va_list argp;
|
va_list argp;
|
||||||
va_start(argp, fmt);
|
va_start(argp, fmt);
|
||||||
verr(eval, fmt, argp);
|
verr(eval, fmt, argp);
|
||||||
|
va_end(argp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void errx(int eval, const char *fmt, ...)
|
void errx(int eval, const char *fmt, ...)
|
||||||
@ -327,6 +328,7 @@ void errx(int eval, const char *fmt, ...)
|
|||||||
va_list argp;
|
va_list argp;
|
||||||
va_start(argp, fmt);
|
va_start(argp, fmt);
|
||||||
verrx(eval, fmt, argp);
|
verrx(eval, fmt, argp);
|
||||||
|
va_end(argp);
|
||||||
}
|
}
|
||||||
|
|
||||||
int getpid(void)
|
int getpid(void)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user