From d4832f47ed6684d4c5b9f2459d5a6aab7172b67a Mon Sep 17 00:00:00 2001 From: Thomas Orozco Date: Tue, 27 Oct 2015 19:54:15 +0100 Subject: [PATCH] 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. --- src/tini.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tini.c b/src/tini.c index 260ae0a..ab7f77b 100644 --- a/src/tini.c +++ b/src/tini.c @@ -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 };