[hackers] [ubase] Turn enumeration into #defines || sin

From: <git_AT_suckless.org>
Date: Sun, 30 Nov 2014 13:34:30 +0100

commit facc3a871f4333cff95f8ea8adef84b7fb147706
Author: sin <sin_AT_2f30.org>
Date: Sun Nov 30 12:33:51 2014 +0000

    Turn enumeration into #defines

diff --git a/mkswap.c b/mkswap.c
index 79230b1..31f73e6 100644
--- a/mkswap.c
+++ b/mkswap.c
_AT_@ -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];
Received on Sun Nov 30 2014 - 13:34:30 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 30 2014 - 13:36:10 CET