From c75e16d4bde598c4d065c8f3817ecf3ff3613c0b Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Tue, 15 Jan 2008 12:25:16 +1100 Subject: [PATCH] Handle change to asyncqueue to handle binary protocols r2271 | dcl | 2008-01-15 12:25:16 +1100 (Tue, 15 Jan 2008) | 2 lines --- site_ansto/motor_dmc2280.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 8990e787..20722205 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -917,8 +917,9 @@ static int DMC2280Send(pDMC2280Driv self, char *command) { */ static int DMC2280SendReceive(pDMC2280Driv self, char *cmd, char* reply) { int status; + int cmd_len = CMDLEN; - status = AsyncUnitTransact(self->asyncUnit, cmd, strlen(cmd), reply, CMDLEN); + status = AsyncUnitTransact(self->asyncUnit, cmd, strlen(cmd), reply, &cmd_len); if (status != 1) { if (self->debug) @@ -1390,7 +1391,7 @@ static char* state_name(StateFunc func) { return ""; } -void str_n_cat(char* s1, int len, const char* s2) { +static void str_n_cat(char* s1, int len, const char* s2) { int i = strlen(s1); const char* p = s2; while (i < len - 3 && *p) {