From: Mike Frysinger Date: Thu, 3 May 2012 05:02:52 +0000 (-0400) Subject: sysctl: use stdbool.h X-Git-Tag: v3.3.3~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbefb4476aea1bc211cd4184954103202fda7dc5;p=procps-ng sysctl: use stdbool.h The stdbool.h header is part of C99 and has been usable on systems for more than a decade. Let's drop these manual hacks. Signed-off-by: Mike Frysinger --- diff --git a/sysctl.c b/sysctl.c index df0ea432..0c4a6309 100644 --- a/sysctl.c +++ b/sysctl.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -46,11 +47,6 @@ #include "proc/procps.h" #include "proc/version.h" -/* Proof that C++ causes brain damage: */ -typedef int bool; -static bool true = 1; -static bool false = 0; - /* * Globals... */