]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Move ROUNDUP8 to common.h as it's not IPv6 specific.
authorRoy Marples <roy@marples.name>
Tue, 2 Feb 2016 23:59:10 +0000 (23:59 +0000)
committerRoy Marples <roy@marples.name>
Tue, 2 Feb 2016 23:59:10 +0000 (23:59 +0000)
common.h
ipv6.h

index bb6f5a7e4a037f4e9d538949a2490bea3f0b681b..6431cdeec9ed89a34d15e824dc677d1229942a0d 100644 (file)
--- a/common.h
+++ b/common.h
@@ -51,6 +51,8 @@
 #define TOSTRING(a)            STRINGIFY(a)
 #define UNUSED(a)              (void)(a)
 
+#define ROUNDUP8(a)            (1 + (((a) - 1) |  7))
+
 #define USEC_PER_SEC           1000000L
 #define USEC_PER_NSEC          1000L
 #define NSEC_PER_SEC           1000000000L
diff --git a/ipv6.h b/ipv6.h
index d96fa54e667c852b6d77f09793b558267fe186b8..77d67763798fc310cfc8314e9a44f44aa30feebf 100644 (file)
--- a/ipv6.h
+++ b/ipv6.h
@@ -45,9 +45,6 @@
 
 #define ALLROUTERS "ff02::2"
 
-#define ROUNDUP8(a)  (1 + (((a) - 1) |  7))
-#define ROUNDUP16(a) (1 + (((a) - 1) | 16))
-
 #define EUI64_GBIT             0x01
 #define EUI64_UBIT             0x02
 #define EUI64_TO_IFID(in6)     do {(in6)->s6_addr[8] ^= EUI64_UBIT; } while (0)