From f94db7bceb70bb37aa675089aef22d996514ce0f Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 22 Aug 2015 14:00:12 +0200 Subject: [PATCH] Remove local macros for bitmanip, now provided by libite Signed-off-by: Joachim Nilsson --- finit.h | 2 ++ helpers.h | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/finit.h b/finit.h index b0c8cae6..664bb679 100644 --- a/finit.h +++ b/finit.h @@ -34,6 +34,8 @@ #include #include +#include "libite/lite.h" + #define CMD_SIZE 256 #define LINE_SIZE 1024 #define BUF_SIZE 4096 diff --git a/helpers.h b/helpers.h index b6e8c9d7..9bb02041 100644 --- a/helpers.h +++ b/helpers.h @@ -61,10 +61,6 @@ do { \ #define _e(fmt, args...) do { fprintf(stderr, "finit:%s:%s() - " fmt "\n", __FILE__, __func__, ##args); } while (0) #define _pe(fmt, args...) do { fprintf(stderr, "finit:%s:%s() - " fmt ". Error %d: %s\n", __FILE__, __func__, ##args, errno, strerror(errno)); } while (0) -#define ISSET(a,i) ((a & (1 << (i)) ? 1 : 0)) -#define SETBIT(a,i) (a |= (1 << (i))) -#define CLRBIT(a,i) (a &= ~(1 << (i))) - void runlevel_set (int pre, int now); int runlevel_get (void); char *runlevel_string (int levels);