From ec427932a5303900964921ba57aec764a6ccebe4 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 11 Jul 2009 23:46:03 +0000 Subject: [PATCH] Fixed a warning with -pedantic --- src/time.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/time.c b/src/time.c index cc34af4..db4f8d6 100644 --- a/src/time.c +++ b/src/time.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2007 Pierre Pronchery */ +/* Copyright (c) 2009 Pierre Pronchery */ /* This file is part of DeforaOS Unix utils */ /* utils is not free software; you can redistribute it and/or modify it under * the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 @@ -73,11 +73,14 @@ static int _time_exec(char * argv[]) static int _time_print(long real, long user, long sys) { static const char * args[3] = { "real", "user", "sys" }; - long * argl[3] = { &real, &user, &sys }; + long * argl[3]; int i; long l; long r; + argl[0] = ℜ + argl[1] = &user; + argl[2] = &sys; if((r = sysconf(_SC_CLK_TCK)) == -1) { _time_error("sysconf", 0);