Commit 3404ba2a authored by Rusty Russell's avatar Rusty Russell

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

parent 96d12822
......@@ -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);
}
......
#include "endian/endian.h"
#include <stdlib.h>
#include <stddef.h>
#include <tap/tap.h>
#include "endian/endian.h"
int main(int argc, char *argv[])
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment