]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
db.c find_audio_files(): use int rather than char for cwd_fd
authorAndre Noll <maan@systemlinux.org>
Tue, 20 Feb 2007 20:07:33 +0000 (21:07 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 20 Feb 2007 20:07:33 +0000 (21:07 +0100)
db.c

diff --git a/db.c b/db.c
index 2e4ffbda74a7179d3c480c30f1df764e66b1c88d..027dfda5933ca79fe9bebbe22c3a1d5e97f16a9c 100644 (file)
--- 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;