Whitespace cleanup: Remove all multiple newlines

This patch removes all occurrences of double and triple
newlines.

Command used for this:
find .  -type d \( -name ffmpeg \) -prune -o \
        -regex '\(.*\.[hc]\|.*\.cc\)' \
        -a -not -name 'adrian-aec.*' -a -not \
        -name reserve.c -a -not -name 'rtkit.*' \
        -exec sed -i -e '/^$/{N;s/^\n$//}' {} \;

Two passes were needed to remove triple newlines.
The excluded files are mirrored files from external sources.
This commit is contained in:
poljar (Damir Jelić) 2013-06-18 22:17:48 +02:00 committed by Tanu Kaskinen
parent e95d054e40
commit 97da92d894
69 changed files with 0 additions and 125 deletions

View file

@ -22,7 +22,6 @@
USA. USA.
***/ ***/
void pa_ltdl_init(void); void pa_ltdl_init(void);
void pa_ltdl_done(void); void pa_ltdl_done(void);

View file

@ -275,7 +275,6 @@ struct pa_alsa_mixer_pdata {
snd_mixer_t *mixer; snd_mixer_t *mixer;
}; };
struct pa_alsa_mixer_pdata *pa_alsa_mixer_pdata_new(void) { struct pa_alsa_mixer_pdata *pa_alsa_mixer_pdata_new(void) {
struct pa_alsa_mixer_pdata *pd; struct pa_alsa_mixer_pdata *pd;
@ -383,8 +382,6 @@ int pa_alsa_set_mixer_rtpoll(struct pa_alsa_mixer_pdata *pd, snd_mixer_t *mixer,
return 0; return 0;
} }
static const snd_mixer_selem_channel_id_t alsa_channel_ids[PA_CHANNEL_POSITION_MAX] = { static const snd_mixer_selem_channel_id_t alsa_channel_ids[PA_CHANNEL_POSITION_MAX] = {
[PA_CHANNEL_POSITION_MONO] = SND_MIXER_SCHN_MONO, /* The ALSA name is just an alias! */ [PA_CHANNEL_POSITION_MONO] = SND_MIXER_SCHN_MONO, /* The ALSA name is just an alias! */
@ -1768,7 +1765,6 @@ finish:
return j; return j;
} }
static pa_alsa_option* option_get(pa_alsa_path *p, const char *section) { static pa_alsa_option* option_get(pa_alsa_path *p, const char *section) {
char *en; char *en;
const char *on; const char *on;
@ -3022,7 +3018,6 @@ void pa_alsa_path_set_dump(pa_alsa_path_set *ps) {
pa_alsa_path_dump(p); pa_alsa_path_dump(p);
} }
static pa_bool_t options_have_option(pa_alsa_option *options, const char *alsa_name) { static pa_bool_t options_have_option(pa_alsa_option *options, const char *alsa_name) {
pa_alsa_option *o; pa_alsa_option *o;
@ -3785,7 +3780,6 @@ static void mapping_paths_probe(pa_alsa_mapping *m, pa_alsa_profile *profile,
return; return;
} }
PA_HASHMAP_FOREACH(p, ps->paths, state) { PA_HASHMAP_FOREACH(p, ps->paths, state) {
if (pa_alsa_path_probe(p, mixer_handle, hctl_handle, m->profile_set->ignore_dB) < 0) { if (pa_alsa_path_probe(p, mixer_handle, hctl_handle, m->profile_set->ignore_dB) < 0) {
pa_hashmap_remove(ps->paths, p); pa_hashmap_remove(ps->paths, p);

View file

@ -580,7 +580,6 @@ static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polle
break; break;
} }
if (++j > 10) { if (++j > 10) {
#ifdef DEBUG_TIMING #ifdef DEBUG_TIMING
pa_log_debug("Not filling up, because already too many iterations."); pa_log_debug("Not filling up, because already too many iterations.");
@ -722,7 +721,6 @@ static int unix_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polle
n_bytes = (size_t) n * u->frame_size; n_bytes = (size_t) n * u->frame_size;
#ifdef DEBUG_TIMING #ifdef DEBUG_TIMING
pa_log_debug("avail: %lu", (unsigned long) n_bytes); pa_log_debug("avail: %lu", (unsigned long) n_bytes);
#endif #endif

View file

@ -539,7 +539,6 @@ static int mmap_read(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polled
break; break;
} }
if (++j > 10) { if (++j > 10) {
#ifdef DEBUG_TIMING #ifdef DEBUG_TIMING
pa_log_debug("Not filling up, because already too many iterations."); pa_log_debug("Not filling up, because already too many iterations.");

View file

@ -1474,7 +1474,6 @@ snd_hctl_elem_t* pa_alsa_find_eld_ctl(snd_hctl_t *hctl, int device) {
return snd_hctl_find_elem(hctl, id); return snd_hctl_find_elem(hctl, id);
} }
static int prepare_mixer(snd_mixer_t *mixer, const char *dev, snd_hctl_t **hctl) { static int prepare_mixer(snd_mixer_t *mixer, const char *dev, snd_hctl_t **hctl) {
int err; int err;

View file

@ -346,7 +346,6 @@ static int update_matches(struct userdata *u, bool add) {
} else } else
dbus_bus_remove_match(pa_dbus_connection_get(u->dbus_connection), filter1, NULL); dbus_bus_remove_match(pa_dbus_connection_get(u->dbus_connection), filter1, NULL);
if (add) { if (add) {
dbus_bus_add_match(pa_dbus_connection_get(u->dbus_connection), filter2, &e); dbus_bus_add_match(pa_dbus_connection_get(u->dbus_connection), filter2, &e);

View file

@ -462,7 +462,6 @@ static int sink_process_msg_cb(pa_msgobject *o, int code, void *data, int64_t of
return pa_sink_process_msg(o, code, data, offset, chunk); return pa_sink_process_msg(o, code, data, offset, chunk);
} }
/* Called from main context */ /* Called from main context */
static int source_set_state_cb(pa_source *s, pa_source_state_t state) { static int source_set_state_cb(pa_source *s, pa_source_state_t state) {
struct userdata *u; struct userdata *u;
@ -1301,7 +1300,6 @@ static void sink_input_attach_cb(pa_sink_input *i) {
pa_sink_attach_within_thread(u->sink); pa_sink_attach_within_thread(u->sink);
} }
/* Called from source I/O thread context. */ /* Called from source I/O thread context. */
static void source_output_detach_cb(pa_source_output *o) { static void source_output_detach_cb(pa_source_output *o) {
struct userdata *u; struct userdata *u;

View file

@ -146,7 +146,6 @@ fail:
return FALSE; return FALSE;
} }
pa_bool_t pa_speex_ec_init(pa_core *c, pa_echo_canceller *ec, pa_bool_t pa_speex_ec_init(pa_core *c, pa_echo_canceller *ec,
pa_sample_spec *rec_ss, pa_channel_map *rec_map, pa_sample_spec *rec_ss, pa_channel_map *rec_map,
pa_sample_spec *play_ss, pa_channel_map *play_map, pa_sample_spec *play_ss, pa_channel_map *play_map,

View file

@ -91,7 +91,6 @@ pa_bool_t pa_webrtc_ec_init(pa_core *c, pa_echo_canceller *ec,
goto fail; goto fail;
} }
hpf = DEFAULT_HIGH_PASS_FILTER; hpf = DEFAULT_HIGH_PASS_FILTER;
if (pa_modargs_get_value_boolean(ma, "high_pass_filter", &hpf) < 0) { if (pa_modargs_get_value_boolean(ma, "high_pass_filter", &hpf) < 0) {
pa_log("Failed to parse high_pass_filter value"); pa_log("Failed to parse high_pass_filter value");

View file

@ -76,7 +76,6 @@ static const char* const modnames[JACK_SS_COUNT] = {
"module-jack-source" "module-jack-source"
}; };
struct userdata { struct userdata {
pa_module *module; pa_module *module;
pa_core *core; pa_core *core;
@ -89,7 +88,6 @@ struct userdata {
int jack_module_index[JACK_SS_COUNT]; int jack_module_index[JACK_SS_COUNT];
}; };
static void ensure_ports_stopped(struct userdata* u) { static void ensure_ports_stopped(struct userdata* u) {
int i; int i;
pa_assert(u); pa_assert(u);
@ -127,7 +125,6 @@ static void ensure_ports_started(struct userdata* u) {
} }
} }
static pa_bool_t check_service_started(struct userdata* u) { static pa_bool_t check_service_started(struct userdata* u) {
DBusError error; DBusError error;
DBusMessage *m = NULL, *reply = NULL; DBusMessage *m = NULL, *reply = NULL;

View file

@ -56,7 +56,6 @@ int pa__init(pa_module*m) {
return module ? 0 : -1; return module ? 0 : -1;
} }
void pa__done(pa_module*m) { void pa__done(pa_module*m) {
struct userdata *u; struct userdata *u;

View file

@ -337,7 +337,6 @@ fail:
return -1; return -1;
} }
void pa__done(pa_module *m) { void pa__done(pa_module *m) {
struct userdata *u; struct userdata *u;

View file

@ -149,14 +149,12 @@ enum {
SUBCOMMAND_EVENT SUBCOMMAND_EVENT
}; };
/* Forward declarations */ /* Forward declarations */
#ifdef DUMP_DATABASE #ifdef DUMP_DATABASE
static void dump_database(struct userdata *); static void dump_database(struct userdata *);
#endif #endif
static void notify_subscribers(struct userdata *); static void notify_subscribers(struct userdata *);
static void save_time_callback(pa_mainloop_api*a, pa_time_event* e, const struct timeval *t, void *userdata) { static void save_time_callback(pa_mainloop_api*a, pa_time_event* e, const struct timeval *t, void *userdata) {
struct userdata *u = userdata; struct userdata *u = userdata;
@ -631,7 +629,6 @@ static void update_highest_priority_device_indexes(struct userdata *u, const cha
} }
} }
static void route_sink_input(struct userdata *u, pa_sink_input *si) { static void route_sink_input(struct userdata *u, pa_sink_input *si) {
const char *role; const char *role;
uint32_t role_index, device_index; uint32_t role_index, device_index;
@ -1003,7 +1000,6 @@ static pa_hook_result_t source_output_new_hook_callback(pa_core *c, pa_source_ou
return PA_HOOK_OK; return PA_HOOK_OK;
} }
static pa_hook_result_t sink_put_hook_callback(pa_core *c, PA_GCC_UNUSED pa_sink *sink, struct userdata *u) { static pa_hook_result_t sink_put_hook_callback(pa_core *c, PA_GCC_UNUSED pa_sink *sink, struct userdata *u) {
pa_assert(c); pa_assert(c);
pa_assert(u); pa_assert(u);
@ -1058,7 +1054,6 @@ static pa_hook_result_t source_unlink_hook_callback(pa_core *c, pa_source *sourc
return route_source_outputs(u, source); return route_source_outputs(u, source);
} }
static void apply_entry(struct userdata *u, const char *name, struct entry *e) { static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
uint32_t idx; uint32_t idx;
char *n; char *n;
@ -1101,7 +1096,6 @@ static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
} }
} }
#define EXT_VERSION 1 #define EXT_VERSION 1
static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connection *c, uint32_t tag, pa_tagstruct *t) { static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connection *c, uint32_t tag, pa_tagstruct *t) {
@ -1600,7 +1594,6 @@ int pa__init(pa_module*m) {
for (uint32_t j = 0; j < i; ++j) for (uint32_t j = 0; j < i; ++j)
subscribe_callback(m->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_NEW, p_i[j].index, u); subscribe_callback(m->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_NEW, p_i[j].index, u);
/* We cycle over all the available sources so that they are added to our database if they are not in it yet */ /* We cycle over all the available sources so that they are added to our database if they are not in it yet */
i = 0; i = 0;
PA_IDXSET_FOREACH(source, m->core->sources, idx) { PA_IDXSET_FOREACH(source, m->core->sources, idx) {

View file

@ -111,7 +111,6 @@ enum {
SUBCOMMAND_SAVE_FORMATS SUBCOMMAND_SAVE_FORMATS
}; };
#define ENTRY_VERSION 1 #define ENTRY_VERSION 1
struct entry { struct entry {
@ -173,7 +172,6 @@ static void trigger_save(struct userdata *u, pa_device_type_t type, uint32_t sin
u->save_time_event = pa_core_rttime_new(u->core, pa_rtclock_now() + SAVE_INTERVAL, save_time_callback, u); u->save_time_event = pa_core_rttime_new(u->core, pa_rtclock_now() + SAVE_INTERVAL, save_time_callback, u);
} }
#ifdef ENABLE_LEGACY_DATABASE_ENTRY_FORMAT #ifdef ENABLE_LEGACY_DATABASE_ENTRY_FORMAT
/* Some forward declarations */ /* Some forward declarations */
static pa_bool_t legacy_entry_read(struct userdata *u, pa_datum *data, struct entry **entry, struct perportentry **perportentry); static pa_bool_t legacy_entry_read(struct userdata *u, pa_datum *data, struct entry **entry, struct perportentry **perportentry);
@ -685,7 +683,6 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
} }
} }
pa_assert(e); pa_assert(e);
if (olde) { if (olde) {
@ -706,7 +703,6 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
entry_free(e); entry_free(e);
} }
pa_assert(ppe); pa_assert(ppe);
if (oldppe) { if (oldppe) {

View file

@ -274,7 +274,6 @@ static int sink_process_msg_cb(pa_msgobject *o, int code, void *data, int64_t of
return pa_sink_process_msg(o, code, data, offset, chunk); return pa_sink_process_msg(o, code, data, offset, chunk);
} }
/* Called from main context */ /* Called from main context */
static int sink_set_state_cb(pa_sink *s, pa_sink_state_t state) { static int sink_set_state_cb(pa_sink *s, pa_sink_state_t state) {
struct userdata *u; struct userdata *u;
@ -1856,7 +1855,6 @@ void equalizer_handle_seed_filter(DBusConnection *conn, DBusMessage *msg, void *
pa_aupdate_write_end(u->a_H[r_channel]); pa_aupdate_write_end(u->a_H[r_channel]);
pa_xfree(ys); pa_xfree(ys);
pa_dbus_send_empty_reply(conn, msg); pa_dbus_send_empty_reply(conn, msg);
pa_assert_se((message = dbus_message_new_signal(u->dbus_path, EQUALIZER_IFACE, equalizer_signals[EQUALIZER_SIGNAL_FILTER_CHANGED].name))); pa_assert_se((message = dbus_message_new_signal(u->dbus_path, EQUALIZER_IFACE, equalizer_signals[EQUALIZER_SIGNAL_FILTER_CHANGED].name)));

View file

@ -166,7 +166,6 @@ fail:
return -1; return -1;
} }
void pa__done(pa_module *m) { void pa__done(pa_module *m) {

View file

@ -944,7 +944,6 @@ static int write_control_parameters(struct userdata *u, double *control_values,
return 0; return 0;
} }
int pa__init(pa_module*m) { int pa__init(pa_module*m) {
struct userdata *u; struct userdata *u;
pa_sample_spec ss; pa_sample_spec ss;
@ -1145,7 +1144,6 @@ int pa__init(pa_module*m) {
} }
} }
u->block_size = pa_frame_align(pa_mempool_block_size_max(m->core->mempool), &ss); u->block_size = pa_frame_align(pa_mempool_block_size_max(m->core->mempool), &ss);
/* Create buffers */ /* Create buffers */

View file

@ -4,7 +4,6 @@
Copyright 2013 bct electronic GmbH Copyright 2013 bct electronic GmbH
Contributor: Stefan Huber <s.huber@bct-electronic.com> Contributor: Stefan Huber <s.huber@bct-electronic.com>
PulseAudio is free software; you can redistribute it and/or modify PulseAudio is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, by the Free Software Foundation; either version 2.1 of the License,

View file

@ -278,7 +278,6 @@ fail:
return -1; return -1;
} }
void pa__done(pa_module *m) { void pa__done(pa_module *m) {

View file

@ -160,7 +160,6 @@ PA_MODULE_USAGE("display_name=<UPnP Media Server name>");
" </interface>" \ " </interface>" \
"</node>" "</node>"
static const char* const valid_modargs[] = { static const char* const valid_modargs[] = {
"display_name", "display_name",
NULL NULL

View file

@ -144,7 +144,6 @@ enum {
SUBCOMMAND_EVENT SUBCOMMAND_EVENT
}; };
static struct entry* entry_new(void); static struct entry* entry_new(void);
static void entry_free(struct entry *e); static void entry_free(struct entry *e);
static struct entry *entry_read(struct userdata *u, const char *name); static struct entry *entry_read(struct userdata *u, const char *name);

View file

@ -286,7 +286,6 @@ static pa_hook_result_t source_new_hook_callback(pa_core *c, pa_source_new_data
return PA_HOOK_OK; return PA_HOOK_OK;
} }
int pa__init(pa_module*m) { int pa__init(pa_module*m) {
struct userdata *u; struct userdata *u;

View file

@ -517,13 +517,11 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
return 0; return 0;
case SINK_MESSAGE_REMOTE_SUSPEND: case SINK_MESSAGE_REMOTE_SUSPEND:
stream_suspend_within_thread(u, !!PA_PTR_TO_UINT(data)); stream_suspend_within_thread(u, !!PA_PTR_TO_UINT(data));
return 0; return 0;
case SINK_MESSAGE_UPDATE_LATENCY: { case SINK_MESSAGE_UPDATE_LATENCY: {
pa_usec_t y; pa_usec_t y;
@ -1029,7 +1027,6 @@ static int read_ports(struct userdata *u, pa_tagstruct *t) {
return 0; return 0;
} }
static int read_formats(struct userdata *u, pa_tagstruct *t) { static int read_formats(struct userdata *u, pa_tagstruct *t) {
uint8_t n_formats; uint8_t n_formats;
pa_format_info *format; pa_format_info *format;

View file

@ -153,7 +153,6 @@ static void sink_update_requested_latency_cb(pa_sink *s) {
} }
/* Called from I/O thread context */ /* Called from I/O thread context */
static void sink_request_rewind_cb(pa_sink *s) { static void sink_request_rewind_cb(pa_sink *s) {
struct userdata *u; struct userdata *u;
@ -349,7 +348,6 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
pa_source_post(u->source, chunk); pa_source_post(u->source, chunk);
} }
} }
/* Called from input thread context */ /* Called from input thread context */
@ -467,7 +465,6 @@ static void source_output_moving_cb(pa_source_output *o, pa_source *dest) {
} }
} }
int pa__init(pa_module*m) { int pa__init(pa_module*m) {
struct userdata *u; struct userdata *u;
pa_sample_spec ss; pa_sample_spec ss;

View file

@ -175,7 +175,6 @@ static int trigger(struct userdata *u, pa_bool_t quick) {
pa_log_debug("trigger: %i", enable_bits); pa_log_debug("trigger: %i", enable_bits);
if (u->use_mmap) { if (u->use_mmap) {
if (!quick) if (!quick)

View file

@ -70,7 +70,6 @@
#define RAOP_PORT 5000 #define RAOP_PORT 5000
struct pa_raop_client { struct pa_raop_client {
pa_core *core; pa_core *core;
char *host; char *host;
@ -392,7 +391,6 @@ pa_raop_client* pa_raop_client_new(pa_core *core, const char* host) {
return c; return c;
} }
void pa_raop_client_free(pa_raop_client* c) { void pa_raop_client_free(pa_raop_client* c) {
pa_assert(c); pa_assert(c);
@ -404,7 +402,6 @@ void pa_raop_client_free(pa_raop_client* c) {
pa_xfree(c); pa_xfree(c);
} }
int pa_raop_connect(pa_raop_client* c) { int pa_raop_connect(pa_raop_client* c) {
char *sci; char *sci;
struct { struct {
@ -438,7 +435,6 @@ int pa_raop_connect(pa_raop_client* c) {
return pa_rtsp_connect(c->rtsp); return pa_rtsp_connect(c->rtsp);
} }
int pa_raop_flush(pa_raop_client* c) { int pa_raop_flush(pa_raop_client* c) {
pa_assert(c); pa_assert(c);
@ -446,7 +442,6 @@ int pa_raop_flush(pa_raop_client* c) {
return 0; return 0;
} }
int pa_raop_client_set_volume(pa_raop_client* c, pa_volume_t volume) { int pa_raop_client_set_volume(pa_raop_client* c, pa_volume_t volume) {
int rv; int rv;
double db; double db;
@ -468,7 +463,6 @@ int pa_raop_client_set_volume(pa_raop_client* c, pa_volume_t volume) {
return rv; return rv;
} }
int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded) { int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded) {
uint16_t len; uint16_t len;
size_t bufmax; size_t bufmax;
@ -550,7 +544,6 @@ int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchun
return 0; return 0;
} }
void pa_raop_client_set_callback(pa_raop_client* c, pa_raop_client_cb_t callback, void *userdata) { void pa_raop_client_set_callback(pa_raop_client* c, pa_raop_client_cb_t callback, void *userdata) {
pa_assert(c); pa_assert(c);

View file

@ -96,7 +96,6 @@ pa_rtsp_client* pa_rtsp_client_new(pa_mainloop_api *mainloop, const char* hostna
return c; return c;
} }
void pa_rtsp_client_free(pa_rtsp_client* c) { void pa_rtsp_client_free(pa_rtsp_client* c) {
pa_assert(c); pa_assert(c);
@ -120,7 +119,6 @@ void pa_rtsp_client_free(pa_rtsp_client* c) {
pa_xfree(c); pa_xfree(c);
} }
static void headers_read(pa_rtsp_client *c) { static void headers_read(pa_rtsp_client *c) {
char* token; char* token;
char delimiters[] = ";"; char delimiters[] = ";";
@ -171,7 +169,6 @@ static void headers_read(pa_rtsp_client *c) {
c->callback(c, c->state, c->response_headers, c->userdata); c->callback(c, c->state, c->response_headers, c->userdata);
} }
static void line_callback(pa_ioline *line, const char *s, void *userdata) { static void line_callback(pa_ioline *line, const char *s, void *userdata) {
char *delimpos; char *delimpos;
char *s2, *s2p; char *s2, *s2p;
@ -278,7 +275,6 @@ static void line_callback(pa_ioline *line, const char *s, void *userdata) {
pa_xfree(s2); pa_xfree(s2);
} }
static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata) { static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata) {
pa_rtsp_client *c = userdata; pa_rtsp_client *c = userdata;
union { union {
@ -359,7 +355,6 @@ void pa_rtsp_disconnect(pa_rtsp_client *c) {
c->ioline = NULL; c->ioline = NULL;
} }
const char* pa_rtsp_localip(pa_rtsp_client* c) { const char* pa_rtsp_localip(pa_rtsp_client* c) {
pa_assert(c); pa_assert(c);
@ -448,7 +443,6 @@ static int rtsp_exec(pa_rtsp_client* c, const char* cmd,
return 0; return 0;
} }
int pa_rtsp_announce(pa_rtsp_client *c, const char* sdp) { int pa_rtsp_announce(pa_rtsp_client *c, const char* sdp) {
pa_assert(c); pa_assert(c);
if (!sdp) if (!sdp)
@ -458,7 +452,6 @@ int pa_rtsp_announce(pa_rtsp_client *c, const char* sdp) {
return rtsp_exec(c, "ANNOUNCE", "application/sdp", sdp, 1, NULL); return rtsp_exec(c, "ANNOUNCE", "application/sdp", sdp, 1, NULL);
} }
int pa_rtsp_setup(pa_rtsp_client* c) { int pa_rtsp_setup(pa_rtsp_client* c) {
pa_headerlist* headers; pa_headerlist* headers;
int rv; int rv;
@ -474,7 +467,6 @@ int pa_rtsp_setup(pa_rtsp_client* c) {
return rv; return rv;
} }
int pa_rtsp_record(pa_rtsp_client* c, uint16_t* seq, uint32_t* rtptime) { int pa_rtsp_record(pa_rtsp_client* c, uint16_t* seq, uint32_t* rtptime) {
pa_headerlist* headers; pa_headerlist* headers;
int rv; int rv;
@ -501,7 +493,6 @@ int pa_rtsp_record(pa_rtsp_client* c, uint16_t* seq, uint32_t* rtptime) {
return rv; return rv;
} }
int pa_rtsp_teardown(pa_rtsp_client *c) { int pa_rtsp_teardown(pa_rtsp_client *c) {
pa_assert(c); pa_assert(c);
@ -509,7 +500,6 @@ int pa_rtsp_teardown(pa_rtsp_client *c) {
return rtsp_exec(c, "TEARDOWN", NULL, NULL, 0, NULL); return rtsp_exec(c, "TEARDOWN", NULL, NULL, 0, NULL);
} }
int pa_rtsp_setparameter(pa_rtsp_client *c, const char* param) { int pa_rtsp_setparameter(pa_rtsp_client *c, const char* param) {
pa_assert(c); pa_assert(c);
if (!param) if (!param)
@ -519,7 +509,6 @@ int pa_rtsp_setparameter(pa_rtsp_client *c, const char* param) {
return rtsp_exec(c, "SET_PARAMETER", "text/parameters", param, 1, NULL); return rtsp_exec(c, "SET_PARAMETER", "text/parameters", param, 1, NULL);
} }
int pa_rtsp_flush(pa_rtsp_client *c, uint16_t seq, uint32_t rtptime) { int pa_rtsp_flush(pa_rtsp_client *c, uint16_t seq, uint32_t rtptime) {
pa_headerlist* headers; pa_headerlist* headers;
int rv; int rv;

View file

@ -22,7 +22,6 @@
USA. USA.
***/ ***/
#include <pulse/proplist.h> #include <pulse/proplist.h>
int pa_udev_get_info(int card_idx, pa_proplist *p); int pa_udev_get_info(int card_idx, pa_proplist *p);

View file

@ -278,11 +278,9 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
static int process_render(struct userdata *u) { static int process_render(struct userdata *u) {
pa_assert(u); pa_assert(u);
if (u->memchunk.length <= 0) if (u->memchunk.length <= 0)
pa_sink_render(u->sink, ioring->usable_buffer_space, &u->memchunk); pa_sink_render(u->sink, ioring->usable_buffer_space, &u->memchunk);
pa_assert(u->memchunk.length > 0); pa_assert(u->memchunk.length > 0);
xc_evtchn_notify(xce, xen_evtchn_port); xc_evtchn_notify(xce, xen_evtchn_port);
@ -583,7 +581,6 @@ void pa__done(pa_module*m) {
} }
static int alloc_gref(struct ioctl_gntalloc_alloc_gref *gref_, void **addr) { static int alloc_gref(struct ioctl_gntalloc_alloc_gref *gref_, void **addr) {
int alloc_fd, dev_fd, rv; int alloc_fd, dev_fd, rv;
@ -701,7 +698,6 @@ static char* read_param(const char *paramname) {
return xs_read(xsh, 0, keybuf, &len); return xs_read(xsh, 0, keybuf, &len);
} }
static int publish_spec(pa_sample_spec *sample_spec) { static int publish_spec(pa_sample_spec *sample_spec) {
/* Publish spec and set state to XenbusStateInitWait*/ /* Publish spec and set state to XenbusStateInitWait*/
int ret; int ret;
@ -713,7 +709,6 @@ static int publish_spec(pa_sample_spec *sample_spec) {
return ret; return ret;
} }
static int read_backend_default_spec(pa_sample_spec *sample_spec) { static int read_backend_default_spec(pa_sample_spec *sample_spec) {
/* Read spec from backend */ /* Read spec from backend */
char *out; char *out;

View file

@ -392,7 +392,6 @@ pa_channel_map* pa_channel_map_init_auto(pa_channel_map *m, unsigned channels, p
return NULL; return NULL;
} }
default: default:
pa_assert_not_reached(); pa_assert_not_reached();
} }

View file

@ -1368,7 +1368,6 @@ finish:
pa_context_unref(c); pa_context_unref(c);
} }
void pa_command_client_event(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata) { void pa_command_client_event(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata) {
pa_context *c = userdata; pa_context *c = userdata;
pa_proplist *pl = NULL; pa_proplist *pl = NULL;
@ -1428,7 +1427,6 @@ void pa_context_rttime_restart(pa_context *c, pa_time_event *e, pa_usec_t usec)
pa_assert(PA_REFCNT_VALUE(c) >= 1); pa_assert(PA_REFCNT_VALUE(c) >= 1);
pa_assert(c->mainloop); pa_assert(c->mainloop);
if (usec == PA_USEC_INVALID) if (usec == PA_USEC_INVALID)
c->mainloop->time_restart(e, NULL); c->mainloop->time_restart(e, NULL);
else { else {

View file

@ -275,7 +275,6 @@ pa_tagstruct *pa_tagstruct_command(pa_context *c, uint32_t command, uint32_t *ta
return -pa_context_set_error((context), (error)); \ return -pa_context_set_error((context), (error)); \
} while(FALSE) } while(FALSE)
#define PA_CHECK_VALIDITY_RETURN_ANY(context, expression, error, value) \ #define PA_CHECK_VALIDITY_RETURN_ANY(context, expression, error, value) \
do { \ do { \
if (!(expression)) { \ if (!(expression)) { \

View file

@ -1838,7 +1838,6 @@ static void context_index_callback(pa_pdispatch *pd, uint32_t command, uint32_t
cb(o->context, idx, o->userdata); cb(o->context, idx, o->userdata);
} }
finish: finish:
pa_operation_done(o); pa_operation_done(o);
pa_operation_unref(o); pa_operation_unref(o);

View file

@ -568,7 +568,6 @@ static void cleanup_defer_events(pa_mainloop *m, pa_bool_t force) {
pa_assert(m->defer_events_please_scan == 0); pa_assert(m->defer_events_please_scan == 0);
} }
void pa_mainloop_free(pa_mainloop *m) { void pa_mainloop_free(pa_mainloop *m) {
pa_assert(m); pa_assert(m);

View file

@ -167,7 +167,6 @@ finish:
pa_operation_unref(o); pa_operation_unref(o);
} }
pa_operation *pa_context_play_sample(pa_context *c, const char *name, const char *dev, pa_volume_t volume, pa_context_success_cb_t cb, void *userdata) { pa_operation *pa_context_play_sample(pa_context *c, const char *name, const char *dev, pa_volume_t volume, pa_context_success_cb_t cb, void *userdata) {
pa_operation *o; pa_operation *o;
pa_tagstruct *t; pa_tagstruct *t;

View file

@ -1215,7 +1215,6 @@ static int create_stream(
PA_STREAM_RELATIVE_VOLUME| PA_STREAM_RELATIVE_VOLUME|
PA_STREAM_PASSTHROUGH)), PA_ERR_INVALID); PA_STREAM_PASSTHROUGH)), PA_ERR_INVALID);
PA_CHECK_VALIDITY(s->context, s->context->version >= 12 || !(flags & PA_STREAM_VARIABLE_RATE), PA_ERR_NOTSUPPORTED); PA_CHECK_VALIDITY(s->context, s->context->version >= 12 || !(flags & PA_STREAM_VARIABLE_RATE), PA_ERR_NOTSUPPORTED);
PA_CHECK_VALIDITY(s->context, s->context->version >= 13 || !(flags & PA_STREAM_PEAK_DETECT), PA_ERR_NOTSUPPORTED); PA_CHECK_VALIDITY(s->context, s->context->version >= 13 || !(flags & PA_STREAM_PEAK_DETECT), PA_ERR_NOTSUPPORTED);
PA_CHECK_VALIDITY(s->context, s->context->state == PA_CONTEXT_READY, PA_ERR_BADSTATE); PA_CHECK_VALIDITY(s->context, s->context->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
@ -1816,7 +1815,6 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
goto finish; goto finish;
} }
if (!pa_tagstruct_eof(t)) { if (!pa_tagstruct_eof(t)) {
pa_context_fail(o->context, PA_ERR_PROTOCOL); pa_context_fail(o->context, PA_ERR_PROTOCOL);
goto finish; goto finish;
@ -2632,7 +2630,6 @@ finish:
pa_operation_unref(o); pa_operation_unref(o);
} }
pa_operation* pa_stream_set_buffer_attr(pa_stream *s, const pa_buffer_attr *attr, pa_stream_success_cb_t cb, void *userdata) { pa_operation* pa_stream_set_buffer_attr(pa_stream *s, const pa_buffer_attr *attr, pa_stream_success_cb_t cb, void *userdata) {
pa_operation *o; pa_operation *o;
pa_tagstruct *t; pa_tagstruct *t;
@ -2779,7 +2776,6 @@ finish:
pa_operation_unref(o); pa_operation_unref(o);
} }
pa_operation *pa_stream_update_sample_rate(pa_stream *s, uint32_t rate, pa_stream_success_cb_t cb, void *userdata) { pa_operation *pa_stream_update_sample_rate(pa_stream *s, uint32_t rate, pa_stream_success_cb_t cb, void *userdata) {
pa_operation *o; pa_operation *o;
pa_tagstruct *t; pa_tagstruct *t;

View file

@ -1,7 +1,6 @@
#ifndef fooarpa_inethfoo #ifndef fooarpa_inethfoo
#define fooarpa_inethfoo #define fooarpa_inethfoo
#if defined(HAVE_ARPA_INET_H) #if defined(HAVE_ARPA_INET_H)
#include <arpa/inet.h> #include <arpa/inet.h>
@ -19,5 +18,4 @@ int inet_pton(int af, const char *src, void *dst);
#endif #endif
#endif #endif

View file

@ -1282,7 +1282,6 @@ static int pa_cli_command_play_file(pa_core *c, pa_tokenizer *t, pa_strbuf *buf,
return -1; return -1;
} }
return pa_play_file(sink, fname, NULL); return pa_play_file(sink, fname, NULL);
} }

View file

@ -255,7 +255,6 @@ char *pa_sink_list_to_string(pa_core *c) {
cmn = pa_channel_map_to_pretty_name(&sink->channel_map); cmn = pa_channel_map_to_pretty_name(&sink->channel_map);
pa_strbuf_printf( pa_strbuf_printf(
s, s,
" %c index: %u\n" " %c index: %u\n"
@ -470,7 +469,6 @@ char *pa_source_list_to_string(pa_core *c) {
return pa_strbuf_tostring_free(s); return pa_strbuf_tostring_free(s);
} }
char *pa_source_output_list_to_string(pa_core *c) { char *pa_source_output_list_to_string(pa_core *c) {
pa_strbuf *s; pa_strbuf *s;
pa_source_output *o; pa_source_output *o;
@ -512,7 +510,6 @@ char *pa_source_output_list_to_string(pa_core *c) {
} else } else
volume_str = pa_xstrdup("n/a"); volume_str = pa_xstrdup("n/a");
pa_strbuf_printf( pa_strbuf_printf(
s, s,
" index: %u\n" " index: %u\n"

View file

@ -37,7 +37,6 @@
#include "database.h" #include "database.h"
typedef struct simple_data { typedef struct simple_data {
char *filename; char *filename;
char *tmp_filename; char *tmp_filename;

View file

@ -105,7 +105,6 @@ static void device_port_free(pa_object *o) {
pa_xfree(p); pa_xfree(p);
} }
pa_device_port *pa_device_port_new(pa_core *c, pa_device_port_new_data *data, size_t extra) { pa_device_port *pa_device_port_new(pa_core *c, pa_device_port_new_data *data, size_t extra) {
pa_device_port *p; pa_device_port *p;

View file

@ -24,7 +24,6 @@
/* Most of the following is blatantly stolen from esound. */ /* Most of the following is blatantly stolen from esound. */
/* path and name of the default EsounD domain socket */ /* path and name of the default EsounD domain socket */
#define ESD_UNIX_SOCKET_DIR "/tmp/.esd" #define ESD_UNIX_SOCKET_DIR "/tmp/.esd"
#define ESD_UNIX_SOCKET_NAME "/tmp/.esd/socket" #define ESD_UNIX_SOCKET_NAME "/tmp/.esd/socket"
@ -51,7 +50,6 @@
#define ESD_VOLUME_BASE (256) #define ESD_VOLUME_BASE (256)
/*************************************/ /*************************************/
/* what can we do to/with the EsounD */ /* what can we do to/with the EsounD */
enum esd_proto { enum esd_proto {
@ -205,5 +203,4 @@ typedef int esd_client_state_t;
/* server and the client match; if it's SWAP_ENDIAN_KEY, swap data */ /* server and the client match; if it's SWAP_ENDIAN_KEY, swap data */
#define ESD_SWAP_ENDIAN_KEY (PA_UINT32_SWAP(ESD_ENDIAN_KEY)) #define ESD_SWAP_ENDIAN_KEY (PA_UINT32_SWAP(ESD_ENDIAN_KEY))
#endif #endif

View file

@ -50,5 +50,4 @@ int pa_fdsem_get(pa_fdsem *f);
int pa_fdsem_before_poll(pa_fdsem *f); int pa_fdsem_before_poll(pa_fdsem *f);
int pa_fdsem_after_poll(pa_fdsem *f); int pa_fdsem_after_poll(pa_fdsem *f);
#endif #endif

View file

@ -37,7 +37,6 @@
typedef struct pa_memblockq pa_memblockq; typedef struct pa_memblockq pa_memblockq;
/* Parameters: /* Parameters:
- name: name for debugging purposes - name: name for debugging purposes

View file

@ -116,5 +116,4 @@ static inline pa_object* pa_object_cast(void *o) {
} \ } \
struct __stupid_useless_struct_to_allow_trailing_semicolon struct __stupid_useless_struct_to_allow_trailing_semicolon
#endif #endif

View file

@ -49,7 +49,6 @@ struct pollfd {
short int revents; /* Types of events that actually occurred. */ short int revents; /* Types of events that actually occurred. */
}; };
/* Poll the file descriptors described by the NFDS structures starting at /* Poll the file descriptors described by the NFDS structures starting at
FDS. If TIMEOUT is nonzero and not -1, allow TIMEOUT milliseconds for FDS. If TIMEOUT is nonzero and not -1, allow TIMEOUT milliseconds for
an event to occur; if TIMEOUT is -1, block until an event occurs. an event to occur; if TIMEOUT is -1, block until an event occurs.

View file

@ -110,7 +110,6 @@ typedef struct pa_dbus_interface_info {
unsigned n_signals; unsigned n_signals;
} pa_dbus_interface_info; } pa_dbus_interface_info;
/* The following functions may only be called from the main thread. */ /* The following functions may only be called from the main thread. */
/* Registers the given interface to the given object path. It doesn't matter /* Registers the given interface to the given object path. It doesn't matter

View file

@ -1589,7 +1589,6 @@ static int sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int
return pa_sink_input_process_msg(o, code, userdata, offset, chunk); return pa_sink_input_process_msg(o, code, userdata, offset, chunk);
} }
static bool handle_input_underrun(playback_stream *s, bool force) { static bool handle_input_underrun(playback_stream *s, bool force) {
bool send_drain; bool send_drain;
@ -1625,7 +1624,6 @@ static bool sink_input_process_underrun_cb(pa_sink_input *i) {
return handle_input_underrun(s, true); return handle_input_underrun(s, true);
} }
/* Called from thread context */ /* Called from thread context */
static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk) { static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk) {
playback_stream *s; playback_stream *s;
@ -2455,7 +2453,6 @@ static void command_create_record_stream(pa_pdispatch *pd, uint32_t command, uin
} }
} }
if (!pa_tagstruct_eof(t)) { if (!pa_tagstruct_eof(t)) {
protocol_error(c); protocol_error(c);
goto finish; goto finish;

View file

@ -178,7 +178,6 @@ static void init_remap_c(pa_remap_t *m) {
} }
} }
/* default C implementation */ /* default C implementation */
static pa_init_remap_func_t remap_func = init_remap_c; static pa_init_remap_func_t remap_func = init_remap_c;

View file

@ -46,7 +46,6 @@
#define _Y do { } while(0) #define _Y do { } while(0)
#endif #endif
struct pa_shmasyncq { struct pa_shmasyncq {
pa_fdsem *read_fdsem, *write_fdsem; pa_fdsem *read_fdsem, *write_fdsem;
pa_shmasyncq_data *data; pa_shmasyncq_data *data;

View file

@ -28,7 +28,6 @@
/* Similar to pa_asyncq, but stores data in a shared memory segment */ /* Similar to pa_asyncq, but stores data in a shared memory segment */
struct pa_shmasyncq_data { struct pa_shmasyncq_data {
unsigned n_elements; unsigned n_elements;
size_t element_size; size_t element_size;

View file

@ -1063,7 +1063,6 @@ bool pa_sink_input_process_underrun(pa_sink_input *i) {
return false; return false;
} }
/* Called from thread context */ /* Called from thread context */
void pa_sink_input_process_rewind(pa_sink_input *i, size_t nbytes /* in sink sample spec */) { void pa_sink_input_process_rewind(pa_sink_input *i, size_t nbytes /* in sink sample spec */) {
size_t lbq; size_t lbq;

View file

@ -415,7 +415,6 @@ pa_usec_t pa_sink_input_set_requested_latency_within_thread(pa_sink_input *i, pa
pa_bool_t pa_sink_input_safe_to_remove(pa_sink_input *i); pa_bool_t pa_sink_input_safe_to_remove(pa_sink_input *i);
bool pa_sink_input_process_underrun(pa_sink_input *i); bool pa_sink_input_process_underrun(pa_sink_input *i);
pa_memchunk* pa_sink_input_get_silence(pa_sink_input *i, pa_memchunk *ret); pa_memchunk* pa_sink_input_get_silence(pa_sink_input *i, pa_memchunk *ret);
#define pa_sink_input_assert_io_context(s) \ #define pa_sink_input_assert_io_context(s) \

View file

@ -148,7 +148,6 @@ void pa_sink_new_data_done(pa_sink_new_data *data) {
pa_xfree(data->active_port); pa_xfree(data->active_port);
} }
/* Called from main context */ /* Called from main context */
static void reset_callbacks(pa_sink *s) { static void reset_callbacks(pa_sink *s) {
pa_assert(s); pa_assert(s);

View file

@ -144,7 +144,6 @@ int pa_sndfile_write_sample_spec(SF_INFO *sfi, pa_sample_spec *ss) {
break; break;
} }
if (!pa_sample_spec_valid(ss)) if (!pa_sample_spec_valid(ss))
return -1; return -1;
@ -418,7 +417,6 @@ pa_sndfile_writef_t pa_sndfile_writef_function(const pa_sample_spec *ss) {
int pa_sndfile_format_from_string(const char *name) { int pa_sndfile_format_from_string(const char *name) {
int i, count = 0; int i, count = 0;
if (!name[0]) if (!name[0])
return -1; return -1;

View file

@ -226,7 +226,6 @@ pa_socket_client* pa_socket_client_new_ipv4(pa_mainloop_api *m, uint32_t address
return pa_socket_client_new_sockaddr(m, (struct sockaddr*) &sa, sizeof(sa)); return pa_socket_client_new_sockaddr(m, (struct sockaddr*) &sa, sizeof(sa));
} }
pa_socket_client* pa_socket_client_new_unix(pa_mainloop_api *m, const char *filename) { pa_socket_client* pa_socket_client_new_unix(pa_mainloop_api *m, const char *filename) {
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
struct sockaddr_un sa; struct sockaddr_un sa;

View file

@ -280,7 +280,6 @@ int pa_unix_socket_remove_stale(const char *fn) {
#endif /* HAVE_SYS_UN_H */ #endif /* HAVE_SYS_UN_H */
pa_bool_t pa_socket_address_is_local(const struct sockaddr *sa) { pa_bool_t pa_socket_address_is_local(const struct sockaddr *sa) {
pa_assert(sa); pa_assert(sa);

View file

@ -2779,7 +2779,6 @@ pa_bool_t pa_source_volume_change_apply(pa_source *s, pa_usec_t *usec_to_next) {
return ret; return ret;
} }
/* Called from the main thread */ /* Called from the main thread */
/* Gets the list of formats supported by the source. The members and idxset must /* Gets the list of formats supported by the source. The members and idxset must
* be freed by the caller. */ * be freed by the caller. */

View file

@ -73,7 +73,6 @@
" por %%xmm4, "#s1" \n\t" /* .. | l h | */ \ " por %%xmm4, "#s1" \n\t" /* .. | l h | */ \
" por %%xmm5, "#s2" \n\t" " por %%xmm5, "#s2" \n\t"
static int channel_overread_table[8] = {8,8,8,12,8,10,12,14}; static int channel_overread_table[8] = {8,8,8,12,8,10,12,14};
static void pa_volume_s16ne_sse2(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) { static void pa_volume_s16ne_sse2(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) {

View file

@ -134,7 +134,6 @@ void pa_smoother_free(pa_smoother* s) {
x = ((x)+1) % HISTORY_MAX; \ x = ((x)+1) % HISTORY_MAX; \
} while(FALSE) } while(FALSE)
static void drop_old(pa_smoother *s, pa_usec_t x) { static void drop_old(pa_smoother *s, pa_usec_t x) {
/* Drop items from history which are too old, but make sure to /* Drop items from history which are too old, but make sure to

View file

@ -100,7 +100,6 @@ char* pa_x11_get_prop(xcb_connection_t *xcb, int screen, const char *name, char
pa_assert(name); pa_assert(name);
pa_assert(p); pa_assert(p);
xs = screen_of_display(xcb, screen); xs = screen_of_display(xcb, screen);
/* /*
* Also try and get the settings from the first screen. * Also try and get the settings from the first screen.

View file

@ -53,7 +53,6 @@ static pa_strlist *load_makefile() {
return result; return result;
} }
START_TEST (mixer_path_test) { START_TEST (mixer_path_test) {
DIR *dir; DIR *dir;
struct dirent *ent; struct dirent *ent;

View file

@ -194,7 +194,6 @@ static void pa_mix_generic_s16ne(pa_mix_info streams[], unsigned nstreams, unsig
} }
} }
#define SAMPLES 1028 #define SAMPLES 1028
#define TIMES 1000 #define TIMES 1000
#define TIMES2 100 #define TIMES2 100

View file

@ -35,7 +35,6 @@
#include <pulsecore/sample-util.h> #include <pulsecore/sample-util.h>
#include <pulsecore/mix.h> #include <pulsecore/mix.h>
/* PA_SAMPLE_U8 */ /* PA_SAMPLE_U8 */
static const uint8_t u8_result[3][10] = { static const uint8_t u8_result[3][10] = {
{ 0x00, 0xff, 0x7f, 0x80, 0x9f, 0x3f, 0x01, 0xf0, 0x20, 0x21 }, { 0x00, 0xff, 0x7f, 0x80, 0x9f, 0x3f, 0x01, 0xf0, 0x20, 0x21 },

View file

@ -76,7 +76,6 @@ int main(int argc, char *argv[]) {
pa_resampler_free(r); pa_resampler_free(r);
} }
pa_mempool_free(pool); pa_mempool_free(pool);
return 0; return 0;

View file

@ -168,7 +168,6 @@ int main(int argc, char*argv[]) {
goto quit; goto quit;
} }
if (r >= 0) if (r >= 0)
break; break;

View file

@ -715,7 +715,6 @@ static void get_source_output_info_callback(pa_context *c, const pa_source_outpu
printf("\n"); printf("\n");
nl = TRUE; nl = TRUE;
pa_snprintf(t, sizeof(t), "%u", i->owner_module); pa_snprintf(t, sizeof(t), "%u", i->owner_module);
pa_snprintf(k, sizeof(k), "%u", i->client); pa_snprintf(k, sizeof(k), "%u", i->client);

View file

@ -59,7 +59,6 @@ static void quit(int ret) {
mainloop_api->quit(mainloop_api, ret); mainloop_api->quit(mainloop_api, ret);
} }
static void context_drain_complete(pa_context *c, void *userdata) { static void context_drain_complete(pa_context *c, void *userdata) {
pa_context_disconnect(c); pa_context_disconnect(c);
} }

View file

@ -40,7 +40,6 @@
#include <pulsecore/native-common.h> #include <pulsecore/native-common.h>
#include <pulsecore/x11prop.h> #include <pulsecore/x11prop.h>
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
const char *dname = NULL, *sink = NULL, *source = NULL, *server = NULL, *cookie_file = PA_NATIVE_COOKIE_FILE; const char *dname = NULL, *sink = NULL, *source = NULL, *server = NULL, *cookie_file = PA_NATIVE_COOKIE_FILE;
int c, ret = 1, screen = 0; int c, ret = 1, screen = 0;