Browse Source

ccanlint clean and move endian.h to top of #includes (tests that it doesn't need anything else)

Rusty Russell 17 years ago
parent
commit
3404ba2a1b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ccan/endian/endian.h
  2. 1 1
      ccan/endian/test/run.c

+ 1 - 1
ccan/endian/endian.h

@@ -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);
 }
 

+ 1 - 1
ccan/endian/test/run.c

@@ -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[])
 {