Skip to content

Commit

Permalink
cleanup: signed/unsigned compare
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Nov 19, 2021
1 parent 75e1dbc commit a78f60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runcron.c
Expand Up @@ -511,7 +511,7 @@ static int set_env(char *key, int val) {
int rv;

rv = snprintf(str, sizeof(str), "%u", val);
if (rv < 0 || rv >= sizeof(str))
if (rv < 0 || (unsigned)rv >= sizeof(str))
return -1;

if ((setenv(key, str, 1) < 0))
Expand Down

0 comments on commit a78f60d

Please sign in to comment.