summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaeyoung Kim <ty317.kim@samsung.com>2016-04-28 02:19:28 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-04-28 02:19:28 -0700
commitb46e6778279cd2ffcbf99326980527ce1845b666 (patch)
tree03e06652b0bbde273cb482137d645c5ab6a53b6b
parent8ba9dbde607ff78f279cbf4806bd49bcc06d22f6 (diff)
parent3f17e5554fae4c4ef961a2082a8b2f8cb1e8f273 (diff)
downloaddeviced-b46e6778279cd2ffcbf99326980527ce1845b666.tar.gz
deviced-b46e6778279cd2ffcbf99326980527ce1845b666.tar.bz2
deviced-b46e6778279cd2ffcbf99326980527ce1845b666.zip
Merge "proc: fix issue between unsigned int and int" into tizen
-rw-r--r--src/proc/cpu-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proc/cpu-info.c b/src/proc/cpu-info.c
index 55669b37..48795f14 100644
--- a/src/proc/cpu-info.c
+++ b/src/proc/cpu-info.c
@@ -51,7 +51,7 @@ static int read_from_file(const char *path, char *buf, size_t size)
count = read(fd, buf, size);
- if (count > 0) {
+ if ((int)count != -1 && count > 0) {
count = (count < size) ? count : size - 1;
while (count > 0 && buf[count - 1] == '\n')
count--;