mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 12:37:08 +02:00
code reformatting
This commit is contained in:
parent
9a05006d1e
commit
5cbcdc4a1d
4 changed files with 14 additions and 12 deletions
|
@ -128,7 +128,7 @@ int rfc3161_handler(struct mg_connection *conn, void *context) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int http_server_start(char *conffile, char * conf_wd, bool stdout_dbg) {
|
||||
int http_server_start(char *conffile, char *conf_wd, bool stdout_dbg) {
|
||||
struct mg_context *ctx;
|
||||
struct mg_callbacks callbacks;
|
||||
|
||||
|
@ -147,8 +147,8 @@ int http_server_start(char *conffile, char * conf_wd, bool stdout_dbg) {
|
|||
mg_set_request_handler(ctx, "/", rfc3161_handler, (void *)ct);
|
||||
|
||||
// Wait until some signals are received
|
||||
while ( g_uts_sig == 0 ){
|
||||
sleep(1);
|
||||
while (g_uts_sig == 0) {
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
// Stop the server.
|
||||
|
|
|
@ -90,7 +90,7 @@ void skeleton_daemon() {
|
|||
}
|
||||
|
||||
/* Open the log file */
|
||||
//openlog("uts-server", LOG_PID, LOG_DAEMON);
|
||||
// openlog("uts-server", LOG_PID, LOG_DAEMON);
|
||||
}
|
||||
|
||||
void log_hex(rfc3161_context *ct, int priority, char *id,
|
||||
|
@ -223,8 +223,8 @@ int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd) {
|
|||
int http_counter = 0;
|
||||
|
||||
CONF *conf = load_config_file(ct, conf_file);
|
||||
if(conf == NULL)
|
||||
goto end;
|
||||
if (conf == NULL)
|
||||
goto end;
|
||||
|
||||
// first pass to set the loglevel as soon as possible
|
||||
for (int i = 0; i < RFC3161_OPTIONS_LEN; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue