Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 07/04/2010 at 17:16:29 Revision: 4154 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Correct conversion specifiers in sscanf invocation. Fixes the warnings: agent/tools.c:157: error: format `%a' expects type `float *', but argument 3 has type `char **' agent/tools.c:157: error: format `%a' expects type `float *', but argument 5 has type `char **' Modified: M agent/tools.c === modified file 'agent/tools.c' --- agent/tools.c 2010-03-18 21:15:21 +0000 +++ agent/tools.c 2010-04-07 14:16:00 +0000 @@ -154,7 +154,7 @@ } /* Find first '=' or '+' character and split string from there. */ - err = sscanf(buf, "%a[^+=]%c%a[^\n]", &p1, &add, &p2); + err = sscanf(buf, "%c[^+=]%c%c[^\n]", p1, &add, p2); if (err != 3) { goto loop_end; }