bin/pc: Mark non-returning function as void

set_var doesn't return any value yet its return type is ULONG, and Coverity freaks out about that. This patch turns that function into a void function.

Coverity CID: 603433

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
Ho Tuan Kiet 2017-12-29 22:47:27 +07:00 committed by Augustin Cavalier
parent 3d9b569384
commit f94f87c710

View File

@ -134,7 +134,7 @@ ULONG term(char **str); /* multiplication/division *,%,/ */
ULONG factor(char **str); /* negation, logical not ~, ! */
ULONG get_value(char **str);
int get_var(char *name, ULONG *val); /* external interfaces to vars */
ULONG set_var(char *name, ULONG val);
void set_var(char *name, ULONG val);
void do_input(void); /* reads stdin and calls parser */
char *skipwhite(char *str); /* skip over input white space */
@ -1018,7 +1018,7 @@ add_var(char *name, ULONG value)
This routine and the companion get_var() are external
interfaces to the variable manipulation routines.
*/
ULONG
void
set_var(char *name, ULONG val)
{
variable *v;