]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
mp3dec: Fix possible endless loop.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 337045c9a6fd65ac05e412d5eb453401bbaa9436..755537da9e436ab8705222925fa3c737f648eab1 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -19,9 +19,6 @@
 #include "afh.h"
 #include "afs.h"
 #include "server.h"
 #include "afh.h"
 #include "afs.h"
 #include "server.h"
-#include <dirent.h> /* readdir() */
-#include <sys/mman.h>
-#include <sys/time.h>
 #include "net.h"
 #include "ipc.h"
 #include "list.h"
 #include "net.h"
 #include "ipc.h"
 #include "list.h"
@@ -1151,7 +1148,7 @@ void afs_event(enum afs_events event, struct para_buffer *pb,
  *
  * This table does not honor events.
  */
  *
  * This table does not honor events.
  */
-int images_event_handler(__a_unused enum afs_events event,
+__a_const int images_event_handler(__a_unused enum afs_events event,
        __a_unused  struct para_buffer *pb, __a_unused void *data)
 {
        return 1;
        __a_unused  struct para_buffer *pb, __a_unused void *data)
 {
        return 1;
@@ -1166,7 +1163,7 @@ int images_event_handler(__a_unused enum afs_events event,
  *
  * This table does not honor events.
  */
  *
  * This table does not honor events.
  */
-int lyrics_event_handler(__a_unused enum afs_events event,
+__a_const int lyrics_event_handler(__a_unused enum afs_events event,
        __a_unused struct para_buffer *pb, __a_unused void *data)
 {
        return 1;
        __a_unused struct para_buffer *pb, __a_unused void *data)
 {
        return 1;