From a081fb89206aa3780db4e2bd35dfcbd00b7c8b9e Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Sun, 5 May 2013 18:29:39 +0200 Subject: [PATCH] Fix copyright and whitespace --- spacestate.c | 10 +++++----- spacestate.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spacestate.c b/spacestate.c index 4f03fca..5d7bcb7 100644 --- a/spacestate.c +++ b/spacestate.c @@ -25,9 +25,9 @@ STATUS spacestate_update(TALLOC_CTX *mem_ctx, const char *prom, const char *code bool must_open = 0; DEBUG(6, "Got event for spacestate: %s %s %s -- %s: %s\n", prom, code, description, sia_code_str(code), sia_code_desc(code)); - - if (strncmp(code, "CL", 2) == 0 || + + if (strncmp(code, "CL", 2) == 0 || strncmp(code, "CA", 2) == 0 || strncmp(code, "CF", 2) == 0 || strncmp(code, "CJ", 2) == 0 || @@ -49,7 +49,7 @@ STATUS spacestate_update(TALLOC_CTX *mem_ctx, const char *prom, const char *code if (must_open) { dbi_conn_queryf(conn, "UPDATE space_state set override=0, override_state='open'"); } else if (must_close) { - dbi_conn_queryf(conn, "UPDATE space_state set override=1, override_state='close'"); + dbi_conn_queryf(conn, "UPDATE space_state set override=1, override_state='closed'"); } return ST_OK; @@ -97,7 +97,7 @@ STATUS spacestate_init(void) conf->event_handlers[conf->event_handler_cnt] = spacestate_update; conf->event_handler_cnt++; - DEBUG(1, "Connecting to %s space state database %s at %s as user %s", conf->spacestate_driver, + DEBUG(1, "Connecting to %s space state database %s at %s as user %s", conf->spacestate_driver, conf->spacestate_name, conf->spacestate_host, conf->spacestate_username); dbi_initialize(NULL); @@ -111,7 +111,7 @@ STATUS spacestate_init(void) if (dbi_conn_connect(conn) < 0) { DEBUG(0, "Could not connect to the space state database"); return ST_DATABASE_FAILURE; - } + } return ST_OK; } diff --git a/spacestate.h b/spacestate.h index 3043d81..a362958 100644 --- a/spacestate.h +++ b/spacestate.h @@ -1,6 +1,6 @@ /* SIA-HS Alarm Monitoring Service - Copyright (C) Wilco Baan Hofman 2012 + Copyright (C) Wilco Baan Hofman 2013 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by