summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:31 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:31 +0200
commit7a14533d1a270bb7a57be16dce31235604d71e0b (patch)
treeb6169d91eee6b60d45891dae7af8b62313239ec9 /src/main.cpp
parent87b9b2d7af194b3339ac4c383301c5ed6c383809 (diff)
misc: fix some minor style issues, fix SCOPE_TRACING compilation
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f14cf96..5b140f2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -50,7 +50,7 @@ int afb_instance::init() {
return this->app.init();
}
-int display_event_callback(sd_event_source *evs, int fd, uint32_t events,
+int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events,
void * /*data*/) {
ST();
@@ -83,8 +83,9 @@ int display_event_callback(sd_event_source *evs, int fd, uint32_t events,
error:
sd_event_source_unref(evs);
- if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr)
+ if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr) {
exit(1);
+}
return -1;
}
@@ -155,7 +156,7 @@ void binding_api::send_event(char const *evname, char const *label) {
logdebug("afb_event_broadcast failed: %m");
}
}
-}
+} // namespace wm
extern "C" const struct afb_binding_v2 afbBindingV2 = {
"winman", nullptr, nullptr, winman_verbs, nullptr, binding_init, nullptr, 0};