Coding style fixes

- opening braces are on the same line as the if statement
- opening braces are not on the same line as the function name
- space between for/while/if and opening parenthesis

Signed-off-by: Dawid Gajownik <gajownik@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
Dawid Gajownik
2015-08-06 17:12:19 -03:00
committed by Bryce Harrington
parent 5e653caa4a
commit 74a635b1ec
14 changed files with 97 additions and 82 deletions
+2 -1
View File
@@ -218,7 +218,8 @@ emit_event(xmlNodePtr parent, struct zuc_event *event)
* @return the formatted time string upon success, NULL otherwise.
*/
static char *
as_duration(long ms) {
as_duration(long ms)
{
char *str = NULL;
if (asprintf(&str, "%1.3f", ms / 1000.0) < 0) {