From 4beba26c615ae88df81a9cb848c971594848fee4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 9 Oct 2008 19:20:05 +0200 Subject: update: make the job id unsigned Since the return value cannot be -1 anymore, we can make it unsigned. --- src/update.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/update.h') diff --git a/src/update.h b/src/update.h index 5c7277e32..0b54ed8f2 100644 --- a/src/update.h +++ b/src/update.h @@ -20,14 +20,16 @@ #ifndef UPDATE_H #define UPDATE_H -int isUpdatingDB(void); +unsigned +isUpdatingDB(void); /* * returns the positive update job ID on success, * returns 0 if busy * @path will be freed by this function and should not be reused */ -int directory_update_init(char *path); +unsigned +directory_update_init(char *path); void reap_update_task(void); -- cgit v1.2.3