aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-04-27 04:24:08 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-04-27 04:24:08 +0000
commita7b95ba2ef650d5ca2af2a5651201113240f3c8f (patch)
tree70a1d82b5bbb5567fac3913a0d5419b7f3292197 /src/modules/temperature
parentFix formatting & remove whitespace. (diff)
downloadenlightenment-a7b95ba2ef650d5ca2af2a5651201113240f3c8f.tar.gz
patch from Ticket #543
SVN revision: 48353
Diffstat (limited to 'src/modules/temperature')
-rw-r--r--src/modules/temperature/tempget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/temperature/tempget.c b/src/modules/temperature/tempget.c
index 605b75959..9cfb785ce 100644
--- a/src/modules/temperature/tempget.c
+++ b/src/modules/temperature/tempget.c
@@ -276,6 +276,7 @@ check(void)
char buf[PATH_MAX];
#ifdef __FreeBSD__
int len;
+ size_t ftemp = 0;
#endif
/* TODO: Make standard parser. Seems to be two types of temperature string:
@@ -290,9 +291,9 @@ check(void)
case SENSOR_TYPE_FREEBSD:
#ifdef __FreeBSD__
len = sizeof(temp);
- if (sysctl(mib, 5, &temp, &len, NULL, 0) != -1)
+ if (sysctl(mib, 5, &ftemp, &len, NULL, 0) != -1)
{
- temp = (temp - 2732) / 10;
+ temp = (ftemp - 2732) / 10;
ret = 1;
}
else