start_stop_daemon: add -N <nice> compat
[re]nice: add support for -nNNN w/o spaces, -NNN (nice only),
simplified code
This commit is contained in:
@@ -189,6 +189,11 @@ unsigned xatou(const char *numstr)
|
||||
return xatoul_range(numstr, 0, UINT_MAX);
|
||||
}
|
||||
|
||||
int xatoi_range(const char *numstr, int lower, int upper)
|
||||
{
|
||||
return xatol_range(numstr, lower, upper);
|
||||
}
|
||||
|
||||
int xatoi(const char *numstr)
|
||||
{
|
||||
return xatol_range(numstr, INT_MIN, INT_MAX);
|
||||
|
||||
Reference in New Issue
Block a user