From dbefb4476aea1bc211cd4184954103202fda7dc5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 3 May 2012 01:02:52 -0400 Subject: [PATCH] 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 --- sysctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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... */