Fix clang formatting

PUBLISHED_FROM=ea64670e42ae58bbe26abee5d928f2afcd83bd46
This commit is contained in:
Marko Mikulicic authored and Cesanta Bot committed 2016-11-23 08:06:09 +00:00
1 parent 3a61186491
commit 39b0b8e2fd
9 files changed
+80 -68

No files matched your search

+6 -8
View File
@@ -10,12 +10,12 @@
/*
* This is a callback invoked by Mongoose to signal that a poll is needed soon.
* Since we're in a tight polling loop anyway (see below), we don't need to do anything.
* Since we're in a tight polling loop anyway (see below), we don't need to do
* anything.
*/
void mg_lwip_mgr_schedule_poll(struct mg_mgr *mgr) {
}
// Define an event handler function
void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
if (ev == MG_EV_POLL) return;
@@ -53,13 +53,10 @@ void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
}
}
/**
* @brief Function for application main entry.
*/
int main(void)
{
int main(void) {
cs_log_set_file(stdout);
bleconfig_init();
@@ -76,7 +73,9 @@ int main(void)
struct mg_connection *nc = NULL;
memset(&opts, 0x00, sizeof(opts));
opts.error_string = &err;
nc = mg_bind_opt(&mgr, "80", ev_handler, opts); // Create listening connection and add it to the event manager
nc = mg_bind_opt(
&mgr, "80", ev_handler,
opts); // Create listening connection and add it to the event manager
if (nc == NULL) {
printf("Failed to create listener: %s\n", err);
return 1;
@@ -91,5 +90,4 @@ int main(void)
mg_mgr_free(&mgr);
return 0;
}
}