From a55be46ec7a281f5c3d41d48edf32e57ef5e4ba1 Mon Sep 17 00:00:00 2001 From: sr Date: Mon, 3 Sep 2012 15:27:36 +0200 Subject: [*] Fixed and unified formatting --- src/types.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index 72449da..d41111a 100644 --- a/src/types.h +++ b/src/types.h @@ -63,14 +63,14 @@ static const uint16_t dnbd3_packet_magic = (0x73) | (0x72 << 8); typedef struct { uint16_t len; - uint8_t addrtype; - uint8_t addr[16]; // network representation - uint16_t port; // network representation - uint16_t imgnamelen; - char *imgname; - int rid; - int read_ahead_kb; - uint8_t is_server; // FALSE = automatic (real client), TRUE = manual control (proxy) + uint8_t addrtype; + uint8_t addr[16]; // network representation + uint16_t port; // network representation + uint16_t imgnamelen; + char *imgname; + int rid; + int read_ahead_kb; + uint8_t is_server; // FALSE = automatic (real client), TRUE = manual control (proxy) } dnbd3_ioctl_t; // network @@ -86,10 +86,10 @@ typedef struct typedef struct { uint16_t magic; // 2byte - uint16_t cmd; // 2byte - uint32_t size; // 4byte - uint64_t offset; // 8byte - uint64_t handle; // 8byte + uint16_t cmd; // 2byte + uint32_t size; // 4byte + uint64_t offset; // 8byte + uint64_t handle; // 8byte } dnbd3_request_t; #pragma pack(0) @@ -97,9 +97,9 @@ typedef struct typedef struct { uint16_t magic; // 2byte - uint16_t cmd; // 2byte - uint32_t size; // 4byte - uint64_t handle; // 8byte + uint16_t cmd; // 2byte + uint32_t size; // 4byte + uint64_t handle; // 8byte } dnbd3_reply_t; #pragma pack(0) -- cgit v1.2.3-55-g7522