]> code.delx.au - pulseaudio/blobdiff - src/daemon/dumpmodules.c
daemon: Fix redundant redeclaration warning
[pulseaudio] / src / daemon / dumpmodules.c
index d0504dc50960229b2a639ec382814ae6ac3c8edd..0529e0465abd5b0c76df177706cd0e956cfddb39 100644 (file)
 #endif
 
 #include <string.h>
-#include <getopt.h>
 #include <stdio.h>
 #include <ltdl.h>
 
 #include <pulse/util.h>
-#include <pulse/i18n.h>
 
-#include <pulsecore/modinfo.h>
 #include <pulsecore/core-util.h>
+#include <pulsecore/i18n.h>
 #include <pulsecore/macro.h>
+#include <pulsecore/modinfo.h>
 
 #include "dumpmodules.h"
 
@@ -90,10 +89,6 @@ static void show_info(const char *name, const char *path, void (*info)(const cha
     }
 }
 
-#ifndef OS_IS_WIN32
-extern const lt_dlsymlist lt_preloaded_symbols[];
-#endif
-
 static int is_preloaded(const char *name) {
     const lt_dlsymlist *l;
 
@@ -107,7 +102,7 @@ static int is_preloaded(const char *name) {
         if ((e = strrchr(buf, '.')))
             *e = 0;
 
-        if (!strcmp(name, buf))
+        if (pa_streq(name, buf))
             return 1;
     }