aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 19:20:05 +0200
committerMax Kellermann <max@duempel.org>2008-10-09 19:20:05 +0200
commit4beba26c615ae88df81a9cb848c971594848fee4 (patch)
tree1d5cad4262c3917066ae45243727736a5ceb731e /src/update.h
parentf1022bcc12dbdf5b7974fb1510197b12214fec32 (diff)
downloadmpd-4beba26c615ae88df81a9cb848c971594848fee4.tar.gz
mpd-4beba26c615ae88df81a9cb848c971594848fee4.tar.xz
mpd-4beba26c615ae88df81a9cb848c971594848fee4.zip
update: make the job id unsigned
Since the return value cannot be -1 anymore, we can make it unsigned.
Diffstat (limited to 'src/update.h')
-rw-r--r--src/update.h6
1 files changed, 4 insertions, 2 deletions
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);