Use unsigned ints for configuration

Let's avoid signed integer overflow if someone ends up passing
the same CLI argument thousands and thousands of times.
This commit is contained in:
Thomas Orozco 2015-10-27 19:54:15 +01:00
parent e7bae983c6
commit d4832f47ed
1 changed files with 3 additions and 3 deletions

View File

@ -36,10 +36,10 @@
#if HAS_SUBREAPER
static int subreaper = 0;
static unsigned int subreaper = 0;
#endif
static int verbosity = 1;
static int kill_process_group = 0;
static unsigned int verbosity = 1;
static unsigned int kill_process_group = 0;
static struct timespec ts = { .tv_sec = 1, .tv_nsec = 0 };