diff options
author | Simon Rettberg | 2020-07-21 15:47:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-21 15:47:28 +0200 |
commit | e71e747cf7173f6fe4d1b113364c0e458e83f129 (patch) | |
tree | 7b14795ae448bc53a0f9bfb51ab53970871d6da7 /src/fuse/helper.h | |
parent | [FUSE] Fix a bunch of warnings (diff) | |
download | dnbd3-e71e747cf7173f6fe4d1b113364c0e458e83f129.tar.gz dnbd3-e71e747cf7173f6fe4d1b113364c0e458e83f129.tar.xz dnbd3-e71e747cf7173f6fe4d1b113364c0e458e83f129.zip |
[FUSE] Formatting
Diffstat (limited to 'src/fuse/helper.h')
-rw-r--r-- | src/fuse/helper.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fuse/helper.h b/src/fuse/helper.h index 9e5d127..65cca2c 100644 --- a/src/fuse/helper.h +++ b/src/fuse/helper.h @@ -18,18 +18,18 @@ typedef struct log_info { -void printLog(log_info *info); +void printLog( log_info *info ); -int connect_to_server(char *server_adress, int port); +int connect_to_server( char *server_adress, int port ); -static inline bool isSameAddressPort(const dnbd3_host_t * const a, const dnbd3_host_t * const b) +static inline bool isSameAddressPort( const dnbd3_host_t * const a, const dnbd3_host_t * const b ) { - return (a->type == b->type) && (a->port == b->port) && (0 == memcmp( a->addr, b->addr, (a->type == HOST_IP4 ? 4 : 16) )); + return ( a->type == b->type ) && ( a->port == b->port ) && ( 0 == memcmp( a->addr, b->addr, ( a->type == HOST_IP4 ? 4 : 16 ) ) ); } -static inline bool isSameAddress(const dnbd3_host_t * const a, const dnbd3_host_t * const b) +static inline bool isSameAddress( const dnbd3_host_t * const a, const dnbd3_host_t * const b ) { - return (a->type == b->type) && (0 == memcmp( a->addr, b->addr, (a->type == HOST_IP4 ? 4 : 16) )); + return ( a->type == b->type ) && ( 0 == memcmp( a->addr, b->addr, ( a->type == HOST_IP4 ? 4 : 16 ) ) ); } #endif |