]> code.delx.au - pulseaudio/blobdiff - src/daemon/dumpmodules.c
daemon: Fix redundant redeclaration warning
[pulseaudio] / src / daemon / dumpmodules.c
index 9c9f1c813560d2a0f7c1a3b5187fa8cbe409ca4f..0529e0465abd5b0c76df177706cd0e956cfddb39 100644 (file)
@@ -6,7 +6,7 @@
 
   PulseAudio is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
+  by the Free Software Foundation; either version 2.1 of the License,
   or (at your option) any later version.
 
   PulseAudio is distributed in the hope that it will be useful, but
 #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"
 
@@ -71,6 +70,8 @@ static void long_info(const char *name, const char *path, pa_modinfo *i) {
         if (i->usage)
             printf(_("Usage: %s\n"), i->usage);
         printf(_("Load Once: %s\n"), pa_yes_no(i->load_once));
+        if (i->deprecated)
+            printf(_("DEPRECATION WARNING: %s\n"), i->deprecated);
     }
 
     if (path)
@@ -88,8 +89,6 @@ static void show_info(const char *name, const char *path, void (*info)(const cha
     }
 }
 
-extern const lt_dlsymlist lt_preloaded_symbols[];
-
 static int is_preloaded(const char *name) {
     const lt_dlsymlist *l;
 
@@ -103,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;
     }