summaryrefslogtreecommitdiffstats
path: root/polyp/pax11publish.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-01-11 01:17:39 +0000
committerLennart Poettering <lennart@poettering.net>2006-01-11 01:17:39 +0000
commit1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch)
treec712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/pax11publish.c
parent6c512fb5a3fdb578179be79672c5096de1a1d25b (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/pax11publish.c')
-rw-r--r--polyp/pax11publish.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/polyp/pax11publish.c b/polyp/pax11publish.c
index a1cb006a..42947836 100644
--- a/polyp/pax11publish.c
+++ b/polyp/pax11publish.c
@@ -135,17 +135,17 @@ int main(int argc, char *argv[]) {
}
case EXPORT: {
- struct pa_client_conf *c = pa_client_conf_new();
+ pa_client_conf *conf = pa_client_conf_new();
uint8_t cookie[PA_NATIVE_COOKIE_LENGTH];
char hx[PA_NATIVE_COOKIE_LENGTH*2+1];
- assert(c);
+ assert(conf);
- if (pa_client_conf_load(c, NULL) < 0) {
+ if (pa_client_conf_load(conf, NULL) < 0) {
fprintf(stderr, "Failed to load client configuration file.\n");
goto finish;
}
- if (pa_client_conf_env(c) < 0) {
+ if (pa_client_conf_env(conf) < 0) {
fprintf(stderr, "Failed to read environment configuration data.\n");
goto finish;
}
@@ -158,8 +158,8 @@ int main(int argc, char *argv[]) {
if (server)
pa_x11_set_prop(d, "POLYP_SERVER", server);
- else if (c->default_server)
- pa_x11_set_prop(d, "POLYP_SERVER", c->default_server);
+ else if (conf->default_server)
+ pa_x11_set_prop(d, "POLYP_SERVER", conf->default_server);
else {
char hn[256];
if (!pa_get_fqdn(hn, sizeof(hn))) {
@@ -172,15 +172,15 @@ int main(int argc, char *argv[]) {
if (sink)
pa_x11_set_prop(d, "POLYP_SINK", sink);
- else if (c->default_sink)
- pa_x11_set_prop(d, "POLYP_SINK", c->default_sink);
+ else if (conf->default_sink)
+ pa_x11_set_prop(d, "POLYP_SINK", conf->default_sink);
if (source)
pa_x11_set_prop(d, "POLYP_SOURCE", source);
- if (c->default_source)
- pa_x11_set_prop(d, "POLYP_SOURCE", c->default_source);
+ if (conf->default_source)
+ pa_x11_set_prop(d, "POLYP_SOURCE", conf->default_source);
- pa_client_conf_free(c);
+ pa_client_conf_free(conf);
if (pa_authkey_load_auto(cookie_file, cookie, sizeof(cookie)) < 0) {
fprintf(stderr, "Failed to load cookie data\n");