[powerdebug V2: 03/14] use an int instead of a double
Daniel Lezcano
daniel.lezcano at free.fr
Wed Mar 23 13:37:32 UTC 2011
Signed-off-by: Daniel Lezcano <daniel.lezcano at free.fr>
---
powerdebug.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/powerdebug.c b/powerdebug.c
index 05c0e34..7de6ddd 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -125,7 +125,7 @@ int getoptions(int argc, char *argv[], struct powerdebug_options *options)
}
break;
case 't':
- options->ticktime = strtod(optarg, NULL);
+ options->ticktime = atoi(optarg);
break;
case 'd':
dump = 1;
--
1.7.1
More information about the linaro-dev
mailing list