From: Taeyoung Kim Date: Wed, 30 Dec 2015 05:33:29 +0000 (+0900) Subject: cpu: change strtol() to strtoull() X-Git-Tag: accepted/tizen/mobile/20151230.223708^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F55903%2F1;p=platform%2Fcore%2Fapi%2Fdevice.git cpu: change strtol() to strtoull() - The type of the variables to store the result is unsigned longlong Thus strtol() is changed to strtoull() Change-Id: I3b01e79b46e7bf3b807e48a1ff1992481e67372d Signed-off-by: Taeyoung Kim --- diff --git a/src/cpu.c b/src/cpu.c index ef4becc..4077db9 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -74,13 +74,13 @@ static int _get_systime(device_system_time_s *st) return -1; s++; - st->user = strtol(s, &s, 10); - st->nice = strtol(s, &s, 10); - st->system = strtol(s, &s, 10); - st->idle = strtol(s, &s, 10); - st->iowait = strtol(s, &s, 10); - st->irq = strtol(s, &s, 10); - st->softirq = strtol(s, &s, 10); + st->user = strtoull(s, &s, 10); + st->nice = strtoull(s, &s, 10); + st->system = strtoull(s, &s, 10); + st->idle = strtoull(s, &s, 10); + st->iowait = strtoull(s, &s, 10); + st->irq = strtoull(s, &s, 10); + st->softirq = strtoull(s, &s, 10); return 0; }