ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit facc3a871f4333cff95f8ea8adef84b7fb147706
parent 78196620244d797752f87597797dfe0c4bb80bec
Author: sin <sin@2f30.org>
Date:   Sun, 30 Nov 2014 12:33:51 +0000

Turn enumeration into #defines

Diffstat:
Mmkswap.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mkswap.c b/mkswap.c @@ -9,8 +9,9 @@ #include "util.h" -enum { SWAP_UUID_LENGTH = 16, SWAP_LABEL_LENGTH = 16 }; -enum { SWAP_MIN_PAGES = 10 }; +#define SWAP_UUID_LENGTH 16 +#define SWAP_LABEL_LENGTH 16 +#define SWAP_MIN_PAGES 10 struct swap_hdr { char bootbits[1024];