diff options
author | Simon Rettberg | 2020-03-09 11:22:26 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-03-09 11:22:26 +0100 |
commit | 0b9706d7654863009ece7c1509c33f97cae07bca (patch) | |
tree | ac92e5c01545ac512418792ae4c28784cd68ee52 /src/server/image.c | |
parent | [SERVER] Fix: Image would be assumed complete if no uplink exists (diff) | |
download | dnbd3-0b9706d7654863009ece7c1509c33f97cae07bca.tar.gz dnbd3-0b9706d7654863009ece7c1509c33f97cae07bca.tar.xz dnbd3-0b9706d7654863009ece7c1509c33f97cae07bca.zip |
[SERVER] Fix data type
Diffstat (limited to 'src/server/image.c')
-rw-r--r-- | src/server/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/image.c b/src/server/image.c index 18e91d9..86b6374 100644 --- a/src/server/image.c +++ b/src/server/image.c @@ -46,7 +46,7 @@ static dnbd3_image_t* image_remove(dnbd3_image_t *image); static dnbd3_image_t* image_free(dnbd3_image_t *image); static bool image_load_all_internal(char *base, char *path); static bool image_addToList(dnbd3_image_t *image); -static bool image_load(char *base, char *path, int withUplink); +static bool image_load(char *base, char *path, bool withUplink); static bool image_clone(int sock, char *name, uint16_t revision, uint64_t imageSize); static bool image_calcBlockCrc32(const int fd, const size_t block, const uint64_t realFilesize, uint32_t *crc); static bool image_ensureDiskSpace(uint64_t size, bool force); @@ -751,7 +751,7 @@ static bool image_addToList(dnbd3_image_t *image) * Note that this is NOT THREAD SAFE so make sure its always * called on one thread only. */ -static bool image_load(char *base, char *path, int withUplink) +static bool image_load(char *base, char *path, bool withUplink) { int revision = -1; struct stat st; |