]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
ogg_get_file_info(): Fix off-by-one.
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index bcfe7e7d070198784875824c1902520c73028cc5..be4d572e22f1517d1f5c3c970d30e6f6671f4158 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -7,7 +7,6 @@
 /** \file aft.c Audio file table functions. */
 
 #include <regex.h>
-#include <dirent.h> /* readdir() */
 #include <sys/mman.h>
 #include <fnmatch.h>
 #include <sys/shm.h>
@@ -724,7 +723,7 @@ static int get_local_time(uint64_t *seconds, char *buf, size_t size,
                } \
        }
 
-static short unsigned get_duration_width(int seconds)
+__a_const static short unsigned get_duration_width(int seconds)
 {
        short unsigned width;
        unsigned hours = seconds / 3600, mins = (seconds % 3600) / 60;