X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fbyteorder.c;h=5b1cf88bc8d0090a2ac9840783791c9cec861a20;hb=a7a011c2ea4a63368b3a96a332da00820ed402cb;hp=28889aaee457158fce825a881bc02c9bb1d527db;hpb=7e0ffed050b62cc5dcf5d16c148185074bfd7d50;p=m6w6%2Flibmemcached diff --git a/libmemcached/byteorder.c b/libmemcached/byteorder.c index 28889aae..5b1cf88b 100644 --- a/libmemcached/byteorder.c +++ b/libmemcached/byteorder.c @@ -1,14 +1,14 @@ -#include "common.h" +#include "byteorder.h" /* Byte swap a 64-bit number. */ -static inline uint64_t swap64(uint64_t in) +static inline uint64_t swap64(uint64_t in) { #ifndef BYTEORDER_BIG_ENDIAN /* Little endian, flip the bytes around until someone makes a faster/better * way to do this. */ uint64_t rv= 0; uint8_t x= 0; - for(x= 0; x < 8; x++) + for(x= 0; x < 8; x++) { rv= (rv << 8) | (in & 0xff); in >>= 8;