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:
parent
3d9b569384
commit
f94f87c710
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user