diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
commit | 1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch) | |
tree | c712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/dumpmodules.c | |
parent | 6c512fb5a3fdb578179be79672c5096de1a1d25b (diff) |
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/dumpmodules.c')
-rw-r--r-- | polyp/dumpmodules.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/polyp/dumpmodules.c b/polyp/dumpmodules.c index 5aaa108d..6864b965 100644 --- a/polyp/dumpmodules.c +++ b/polyp/dumpmodules.c @@ -35,12 +35,12 @@ #define PREFIX "module-" -static void short_info(const char *name, const char *path, struct pa_modinfo *i) { +static void short_info(const char *name, PA_GCC_UNUSED const char *path, pa_modinfo *i) { assert(name && i); printf("%-40s%s\n", name, i->description ? i->description : "n/a"); } -static void long_info(const char *name, const char *path, struct pa_modinfo *i) { +static void long_info(const char *name, const char *path, pa_modinfo *i) { static int nl = 0; assert(name && i); @@ -68,8 +68,8 @@ static void long_info(const char *name, const char *path, struct pa_modinfo *i) printf("Path: %s\n", path); } -static void show_info(const char *name, const char *path, void (*info)(const char *name, const char *path, struct pa_modinfo*i)) { - struct pa_modinfo *i; +static void show_info(const char *name, const char *path, void (*info)(const char *name, const char *path, pa_modinfo*i)) { + pa_modinfo *i; if ((i = pa_modinfo_get_by_name(path ? path : name))) { info(name, path, i); @@ -79,7 +79,7 @@ static void show_info(const char *name, const char *path, void (*info)(const cha static int callback(const char *path, lt_ptr data) { const char *e; - struct pa_daemon_conf *c = (data); + pa_daemon_conf *c = (data); e = pa_path_get_filename(path); @@ -89,7 +89,7 @@ static int callback(const char *path, lt_ptr data) { return 0; } -void pa_dump_modules(struct pa_daemon_conf *c, int argc, char * const argv[]) { +void pa_dump_modules(pa_daemon_conf *c, int argc, char * const argv[]) { if (argc > 0) { int i; for (i = 0; i < argc; i++) |