FS-9924: Removed extra space in source files

This commit is contained in:
Sergey Safarov committed 2017-02-09 23:59:49 -05:00
1 parent 60d4e87487
commit df1ab07ca4
455 files changed
+9699 -9698

No files matched your search

@@ -87,7 +87,7 @@ static struct {
interval_timer_t interval_timers[MAX_INTERVAL + 1][TIMERS_PER_INTERVAL];
/** Maps IDs to timers */
interval_timer_t *active_interval_timers[MAX_ACTIVE_TIMERS];
/** Next timer to assign for a particular interval */
/** Next timer to assign for a particular interval */
int next_interval_timer_num[MAX_INTERVAL + 1];
/** Synchronizes access to timer creation / deletion */
switch_mutex_t *interval_timers_mutex;
@@ -243,7 +243,7 @@ static switch_status_t interval_timer_stop(interval_timer_t *it)
* Timer module interface: start a new timer
* @param timer the timer
* @return SWITCH_STATUS_SUCCESS if successful otherwise SWITCH_STATUS_GENERR
*/
*/
static switch_status_t mod_posix_timer_init(switch_timer_t *timer)
{
interval_timer_t *it;
@@ -405,7 +405,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_posix_timer_load)
sigaddset(&sigmask, SIG);
sigprocmask(SIG_BLOCK, &sigmask, NULL);
/* set up signal handler */
/* set up signal handler */
memset(&sa, 0, sizeof(sa));
sa.sa_flags = SA_SIGINFO | SA_RESTART;
sa.sa_sigaction = timer_signal_handler;
+7 -7
View File
@@ -28,7 +28,7 @@ int shutdown;
/**
* Return a random sample from a normal distrubtion centered at mean with
* Return a random sample from a normal distrubtion centered at mean with
* the specified standard deviation.
*
* THIS FUNCTION IS NOT REENTRANT!!!
@@ -72,7 +72,7 @@ static int sample(int *weights, int num_weights)
return 0;
}
/*
/*
* Calculate x - y
* @return 0 if x is before y, the difference otherwise.
*/
@@ -91,7 +91,7 @@ double timespec_subtract(struct timespec *x, struct timespec *y)
y->tv_nsec += 1000000000 * nsec;
y->tv_sec -= nsec;
}
/* Return 0 if result is negative. */
if(x->tv_sec < y->tv_sec) {
return 0.0f;
@@ -152,7 +152,7 @@ static void test_create_destroy()
int interval_counts[4] = { 0, 0, 0, 0 };
int toggle[2] = { 75, 100 };
int timer_count = 0;
int i = 0;
printf("test_create_destroy()\n");
for(i = 0; i < 100000000; i++) {
@@ -257,7 +257,7 @@ void *session_thread(void *arg)
/* stop the timer */
timer_if->timer_destroy(&timer);
if (!shutdown) {
if (!shutdown) {
check_result(d);
}
@@ -281,7 +281,7 @@ done:
free(d);
return NULL;
}
/* return result */
return d;
}
@@ -345,7 +345,7 @@ static void test_timer_session(int *interval, int *interval_weights, int num_int
int i = 0;
struct timespec start, now, period;
double elapsed = 0.0f;
printf("test_timer_session(%d, %f, %d, %d, %f, %f)\n", interval[0], test_duration, cps, max_sessions, duration_mean, duration_std_dev);
+1 -1
View File
@@ -1,5 +1,5 @@
#ifndef SWITCH_H
#define SWITCH_H
#define SWITCH_H
#include <pthread.h>
#include <time.h>