confile_utils: cleanup sig_num()

parent bb956bfc
...@@ -994,10 +994,12 @@ static const struct signame signames[] = { ...@@ -994,10 +994,12 @@ static const struct signame signames[] = {
static int sig_num(const char *sig) static int sig_num(const char *sig)
{ {
int ret;
unsigned int signum; unsigned int signum;
if (lxc_safe_uint(sig, &signum) < 0) ret = lxc_safe_uint(sig, &signum);
return -1; if (ret < 0)
return ret;
return signum; return signum;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment