]> git.itanic.dy.fi Git - rrdd/commitdiff
process: request_fork: Ensure function parameter is always signed
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 1 Oct 2012 14:45:52 +0000 (17:45 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 1 Oct 2012 14:51:25 +0000 (17:51 +0300)
Some architectures, such as armv6, treat char as an unsigned integer
instead of signed. Basically it makes no sense to use char type with
the variable. When it is changed to an int there is no confusion about
the type and it will work better with all architectures.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
process.c

index a471ab826137d3f974fa05f745e5ca312e8d0121..9864ec756996b1312b723ecac814418127d80e02 100644 (file)
--- a/process.c
+++ b/process.c
@@ -312,7 +312,7 @@ int do_fork(void)
        return 0;
 }
 
-static int request_fork(char request)
+static int request_fork(int request)
 {
        int pid = getpid();