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/client.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/client.c')
-rw-r--r-- | polyp/client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/polyp/client.c b/polyp/client.c index 8c7f4800..1938a4e0 100644 --- a/polyp/client.c +++ b/polyp/client.c @@ -33,12 +33,12 @@ #include "subscribe.h" #include "log.h" -struct pa_client *pa_client_new(struct pa_core *core, pa_typeid_t typeid, const char *name) { - struct pa_client *c; +pa_client *pa_client_new(pa_core *core, pa_typeid_t typeid, const char *name) { + pa_client *c; int r; assert(core); - c = pa_xmalloc(sizeof(struct pa_client)); + c = pa_xmalloc(sizeof(pa_client)); c->name = pa_xstrdup(name); c->owner = NULL; c->core = core; @@ -58,7 +58,7 @@ struct pa_client *pa_client_new(struct pa_core *core, pa_typeid_t typeid, const return c; } -void pa_client_free(struct pa_client *c) { +void pa_client_free(pa_client *c) { assert(c && c->core); pa_idxset_remove_by_data(c->core->clients, c, NULL); @@ -72,7 +72,7 @@ void pa_client_free(struct pa_client *c) { } -void pa_client_kill(struct pa_client *c) { +void pa_client_kill(pa_client *c) { assert(c); if (!c->kill) { pa_log_warn(__FILE__": kill() operation not implemented for client %u\n", c->index); @@ -82,7 +82,7 @@ void pa_client_kill(struct pa_client *c) { c->kill(c); } -void pa_client_set_name(struct pa_client *c, const char *name) { +void pa_client_set_name(pa_client *c, const char *name) { assert(c); pa_xfree(c->name); c->name = pa_xstrdup(name); |