mirror of https://github.com/krallin/tini.git
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:
parent
e7bae983c6
commit
d4832f47ed
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue