summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-02 19:04:54 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-02 19:04:54 +0100
commite3e66b496be0c4abe4fa74569691ea2fb2624b86 (patch)
treecf9ff77cec4683cf09963204c37d442a2a029767
parent5091e2598048d81e3913fbb66916b51df29c9b31 (diff)
fix indent
Change-Id: If4173ea56b2ecf39f6fbdd15ed84321468a0a56a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--alsa-hook/PolicyAlsaHook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alsa-hook/PolicyAlsaHook.c b/alsa-hook/PolicyAlsaHook.c
index 5e63825..3fbf40e 100644
--- a/alsa-hook/PolicyAlsaHook.c
+++ b/alsa-hook/PolicyAlsaHook.c
@@ -149,9 +149,10 @@ void OnEventCB(void *handle, const char *event, int evtid, struct json_object *d
if (done) {
const char *value=json_object_get_string(tmpJ);
if (!strcmp(afbEvent[index]->value, value)) {
- if (afbEvent[index]->signal)
+ if (afbEvent[index]->signal) {
if (afbClient->verbose) printf("ON-EVENT search=%s value=%s signal=%d\n", afbEvent[index]->search, value, afbEvent[index]->signal);
if (afbEvent[index]->signal) kill (getpid(), afbEvent[index]->signal);
+ }
}
}
}