From e497e2daf305af85ded20f8f6b5c10d4dfb16c1a Mon Sep 17 00:00:00 2001 From: Koennecke Mark Date: Thu, 30 Apr 2015 09:25:36 +0200 Subject: [PATCH] Fixed minor typos and compilation issues --- devser.c | 3 --- motorsec.c | 2 +- scriptcontext.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/devser.c b/devser.c index fc1f90b2..bb6a7a92 100644 --- a/devser.c +++ b/devser.c @@ -151,9 +151,6 @@ static DevAction *DevNextAction(DevSer * devser) } static void LogStart(DevSer *self) { - if(self->startTime > 0){ - printf("DEVSER: there is something fucked up in LogStart. Investigate!\n"); - } self->startTime = DoubleTime(); } static void LogResponse(DevSer *self, int error) diff --git a/motorsec.c b/motorsec.c index 6f0ed33a..0288e4bc 100644 --- a/motorsec.c +++ b/motorsec.c @@ -298,7 +298,7 @@ static int SecMotorStatus(void *sulf, SConnection * pCon) int status; pHdb node = NULL; hdbValue v; - float interrupt; + float interrupt = 0.; char error[132]; assert(sulf); diff --git a/scriptcontext.c b/scriptcontext.c index e1152fc3..b63e565b 100644 --- a/scriptcontext.c +++ b/scriptcontext.c @@ -553,7 +553,7 @@ static char *SctActionHandler(void *actionData, char *lastReply, } else { l = strlen(origScript); } - snprintf(eprop, sizeof eprop, "error_in_%.*s", l, origScript); + snprintf(eprop, sizeof eprop, "error_in_%s", origScript); emsg = GetHdbProp(node, eprop); cnt = 0; if (emsg != NULL) {