Fixed a warning with -pedantic
This commit is contained in:
parent
0a037a5c67
commit
ec427932a5
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2007 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS Unix utils */
|
/* This file is part of DeforaOS Unix utils */
|
||||||
/* utils is not free software; you can redistribute it and/or modify it under
|
/* 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
|
* 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 int _time_print(long real, long user, long sys)
|
||||||
{
|
{
|
||||||
static const char * args[3] = { "real", "user", "sys" };
|
static const char * args[3] = { "real", "user", "sys" };
|
||||||
long * argl[3] = { &real, &user, &sys };
|
long * argl[3];
|
||||||
int i;
|
int i;
|
||||||
long l;
|
long l;
|
||||||
long r;
|
long r;
|
||||||
|
|
||||||
|
argl[0] = ℜ
|
||||||
|
argl[1] = &user;
|
||||||
|
argl[2] = &sys;
|
||||||
if((r = sysconf(_SC_CLK_TCK)) == -1)
|
if((r = sysconf(_SC_CLK_TCK)) == -1)
|
||||||
{
|
{
|
||||||
_time_error("sysconf", 0);
|
_time_error("sysconf", 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user