diff options
author | Simon Rettberg | 2019-09-02 13:26:47 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-09-02 13:26:47 +0200 |
commit | 0edf0a0888b1e40769e19eee031c2cefdcf37d26 (patch) | |
tree | 636a22a461b9c6fd9fbf72759796975522a7986b /src/shared/protocol.h | |
parent | [SERVER] uplink: Don't reinit uplink when freeing it (diff) | |
download | dnbd3-0edf0a0888b1e40769e19eee031c2cefdcf37d26.tar.gz dnbd3-0edf0a0888b1e40769e19eee031c2cefdcf37d26.tar.xz dnbd3-0edf0a0888b1e40769e19eee031c2cefdcf37d26.zip |
[SERVER] Fix compiler warnings
Diffstat (limited to 'src/shared/protocol.h')
-rw-r--r-- | src/shared/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/protocol.h b/src/shared/protocol.h index 92dbe11..2b21c21 100644 --- a/src/shared/protocol.h +++ b/src/shared/protocol.h @@ -20,7 +20,7 @@ #define COND_HOPCOUNT(vers,hopcount) ( (vers) >= 3 ? (hopcount) : 0 ) // 2017-11-02: Macro to set flags in select image message properly if we're a server, as BG_REP depends on global var -#define SI_SERVER_FLAGS ( (_pretendClient ? 0 : FLAGS8_SERVER) | (_backgroundReplication == BGR_FULL ? FLAGS8_BG_REP : 0) ) +#define SI_SERVER_FLAGS ( (uint8_t)( (_pretendClient ? 0 : FLAGS8_SERVER) | (_backgroundReplication == BGR_FULL ? FLAGS8_BG_REP : 0) ) ) #define REPLY_OK (0) #define REPLY_ERRNO (-1) |