From: Andre Noll Date: Tue, 20 Feb 2007 20:07:33 +0000 (+0100) Subject: db.c find_audio_files(): use int rather than char for cwd_fd X-Git-Tag: v0.2.16~76^2~4 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=9847a8ce2fd749dda24017abc93cf0d1b25721b2;p=paraslash.git db.c find_audio_files(): use int rather than char for cwd_fd --- diff --git a/db.c b/db.c index 2e4ffbda..027dfda5 100644 --- a/db.c +++ b/db.c @@ -50,7 +50,7 @@ int find_audio_files(const char *dirname, int (*f)(const char *, const char *)) * is usually faster and more reliable than saving cwd in some buffer * and calling chdir() afterwards (see man 3 getcwd). */ - char cwd_fd = open(".", O_RDONLY); + int cwd_fd = open(".", O_RDONLY); struct stat s; int ret = -1;