ccanlint clean and move endian.h to top of #includes (tests that it doesn't need...
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 25 Feb 2009 00:29:56 +0000 (10:59 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 25 Feb 2009 00:29:56 +0000 (10:59 +1030)
ccan/endian/endian.h
ccan/endian/test/run.c

index 7f601f9ac2f74c6740531fede916d41b39ce64f0..81db5d948f368505375a81f32fee7591d065973d 100644 (file)
@@ -21,7 +21,7 @@ static inline uint32_t swab_u32(uint32_t val)
 {
        return ((val & (uint32_t)0x000000ffUL) << 24)
                | ((val & (uint32_t)0x0000ff00UL) <<  8)
-               | ((val & (uint32_t)0x00ff0000UL) >>  8) 
+               | ((val & (uint32_t)0x00ff0000UL) >>  8)
                | ((val & (uint32_t)0xff000000UL) >> 24);
 }
 
index 9016e2267770f73b419461385a83cbc2f7648072..2cd258613de4fe1e6665b024a0807d0a2fe0fab5 100644 (file)
@@ -1,7 +1,7 @@
+#include "endian/endian.h"
 #include <stdlib.h>
 #include <stddef.h>
 #include <tap/tap.h>
-#include "endian/endian.h"
 
 int main(int argc, char *argv[])
 {