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

@ -1,7 +1,6 @@
#ifndef fooarpa_inethfoo
#define fooarpa_inethfoo
#if defined(HAVE_ARPA_INET_H)
#include <arpa/inet.h>
@ -19,5 +18,4 @@ int inet_pton(int af, const char *src, void *dst);
#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 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);
pa_strbuf_printf(
s,
" %c index: %u\n"
@ -470,7 +469,6 @@ char *pa_source_list_to_string(pa_core *c) {
return pa_strbuf_tostring_free(s);
}
char *pa_source_output_list_to_string(pa_core *c) {
pa_strbuf *s;
pa_source_output *o;
@ -512,7 +510,6 @@ char *pa_source_output_list_to_string(pa_core *c) {
} else
volume_str = pa_xstrdup("n/a");
pa_strbuf_printf(
s,
" index: %u\n"

View file

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

View file

@ -105,7 +105,6 @@ static void device_port_free(pa_object *o) {
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 *p;

View file

@ -24,7 +24,6 @@
/* Most of the following is blatantly stolen from esound. */
/* path and name of the default EsounD domain socket */
#define ESD_UNIX_SOCKET_DIR "/tmp/.esd"
#define ESD_UNIX_SOCKET_NAME "/tmp/.esd/socket"
@ -51,7 +50,6 @@
#define ESD_VOLUME_BASE (256)
/*************************************/
/* what can we do to/with the EsounD */
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 */
#define ESD_SWAP_ENDIAN_KEY (PA_UINT32_SWAP(ESD_ENDIAN_KEY))
#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_after_poll(pa_fdsem *f);
#endif

View file

@ -37,7 +37,6 @@
typedef struct pa_memblockq pa_memblockq;
/* Parameters:
- 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
#endif

View file

@ -49,7 +49,6 @@ struct pollfd {
short int revents; /* Types of events that actually occurred. */
};
/* Poll the file descriptors described by the NFDS structures starting at
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.

View file

@ -110,7 +110,6 @@ typedef struct pa_dbus_interface_info {
unsigned n_signals;
} pa_dbus_interface_info;
/* The following functions may only be called from the main thread. */
/* 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);
}
static bool handle_input_underrun(playback_stream *s, bool force) {
bool send_drain;
@ -1625,7 +1624,6 @@ static bool sink_input_process_underrun_cb(pa_sink_input *i) {
return handle_input_underrun(s, true);
}
/* Called from thread context */
static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk) {
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)) {
protocol_error(c);
goto finish;

View file

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

View file

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

View file

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

View file

@ -1063,7 +1063,6 @@ bool pa_sink_input_process_underrun(pa_sink_input *i) {
return false;
}
/* Called from thread context */
void pa_sink_input_process_rewind(pa_sink_input *i, size_t nbytes /* in sink sample spec */) {
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);
bool pa_sink_input_process_underrun(pa_sink_input *i);
pa_memchunk* pa_sink_input_get_silence(pa_sink_input *i, pa_memchunk *ret);
#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);
}
/* Called from main context */
static void reset_callbacks(pa_sink *s) {
pa_assert(s);

View file

@ -144,7 +144,6 @@ int pa_sndfile_write_sample_spec(SF_INFO *sfi, pa_sample_spec *ss) {
break;
}
if (!pa_sample_spec_valid(ss))
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 i, count = 0;
if (!name[0])
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));
}
pa_socket_client* pa_socket_client_new_unix(pa_mainloop_api *m, const char *filename) {
#ifdef HAVE_SYS_UN_H
struct sockaddr_un sa;

View file

@ -280,7 +280,6 @@ int pa_unix_socket_remove_stale(const char *fn) {
#endif /* HAVE_SYS_UN_H */
pa_bool_t pa_socket_address_is_local(const struct sockaddr *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;
}
/* Called from the main thread */
/* Gets the list of formats supported by the source. The members and idxset must
* be freed by the caller. */

View file

@ -73,7 +73,6 @@
" por %%xmm4, "#s1" \n\t" /* .. | l h | */ \
" por %%xmm5, "#s2" \n\t"
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) {

View file

@ -134,7 +134,6 @@ void pa_smoother_free(pa_smoother* s) {
x = ((x)+1) % HISTORY_MAX; \
} while(FALSE)
static void drop_old(pa_smoother *s, pa_usec_t x) {
/* 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(p);
xs = screen_of_display(xcb, screen);
/*
* Also try and get the settings from the first screen.