summaryrefslogtreecommitdiffstats
path: root/src/server/helper.h
diff options
context:
space:
mode:
authorSimon Rettberg2015-12-15 17:45:44 +0100
committerSimon Rettberg2015-12-15 17:45:44 +0100
commit72104f2e83fa724f9667c876dca17a2c5ee9b2a2 (patch)
tree38837580c70b390f0bc35c15d2bc4d0865a9f3c4 /src/server/helper.h
parent[SERVER] Make listen port configurable (diff)
downloaddnbd3-72104f2e83fa724f9667c876dca17a2c5ee9b2a2.tar.gz
dnbd3-72104f2e83fa724f9667c876dca17a2c5ee9b2a2.tar.xz
dnbd3-72104f2e83fa724f9667c876dca17a2c5ee9b2a2.zip
[SERVER] Remove non-working images from list, plus refactoring
Now that we can automatically load unknown images from disk on request, it makes sense to remove non-working images from the image list. On future requests, we will look for them on disk again, which is nice in case of temporary storage hickups. Also, some more ore less related locking has been refined (loading images, replicating images)
Diffstat (limited to 'src/server/helper.h')
-rw-r--r--src/server/helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/helper.h b/src/server/helper.h
index 4ab2134..389a98c 100644
--- a/src/server/helper.h
+++ b/src/server/helper.h
@@ -33,7 +33,7 @@ static inline bool isSameAddressPort(const dnbd3_host_t * const a, const dnbd3_h
* Test whether string ends in suffix.
* @return true if string =~ /suffix$/
*/
-static inline int strend(char *string, char *suffix)
+static inline bool strend(char *string, char *suffix)
{
if ( string == NULL ) return false;
if ( suffix == NULL || *suffix == '\0' ) return true;