Permalink
Browse files

Code format adaptation to master branch style

  • Loading branch information...
1 parent 0773323 commit a576ccede14f375266c3ec1dc220bbeded9cfd90 @harmer harmer committed with paraboul May 23, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/entry.c
  2. +1 −1 src/sock.c
  3. +1 −1 src/ticks.c
  4. +1 −1 src/ticks.h
View
2 src/entry.c
@@ -198,7 +198,7 @@ int main(int argc, char **argv)
}
/* Set uid when uid section exists */
- if (ape_config_get_section (srv, "uid")) {
+ if (ape_config_get_section(srv, "uid")) {
/* Get the user information (uid section) */
if ((pwd = getpwnam(CONFIG_VAL(uid, user, srv))) == NULL) {
View
2 src/sock.c
@@ -295,7 +295,7 @@ unsigned int sockroutine(acetables *g_ape)
gettimeofday(&t_start, NULL);
while (server_is_running) {
/* Linux 2.6.25 provides a fd-driven timer system. It could be usefull to implement */
- int timeout_to_hang = get_first_timer_ms (g_ape);
+ int timeout_to_hang = get_first_timer_ms(g_ape);
nfds = events_poll(g_ape->events, timeout_to_hang);
if (nfds < 0) {
View
2 src/ticks.c
@@ -144,7 +144,7 @@ void del_timer_identifier(unsigned int identifier, acetables *g_ape)
}
/* Returns closest timer execution time (in ms) */
-int get_first_timer_ms (acetables *g_ape)
+int get_first_timer_ms(acetables *g_ape)
{
struct _ticks_callback *timers = g_ape->timers.timers;
View
2 src/ticks.h
@@ -45,7 +45,7 @@ struct _ticks_callback *add_timeout(unsigned int msec, void *callback, void *par
struct _ticks_callback *add_periodical(unsigned int msec, int times, void *callback, void *params, acetables *g_ape);
void del_timer_identifier(unsigned int identifier, acetables *g_ape);
struct _ticks_callback *get_timer_identifier(unsigned int identifier, acetables *g_ape);
-int get_first_timer_ms (acetables *g_ape);
+int get_first_timer_ms(acetables *g_ape);
#define add_ticked(x, y) add_periodical(VTICKS_RATE, 0, x, y, g_ape)

0 comments on commit a576cce

Please sign in to comment.