raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=f740616961ec92837f9e90cac804d4f59a947cb6

commit f740616961ec92837f9e90cac804d4f59a947cb6
Author: Al Poole <nets...@gmail.com>
Date:   Fri Dec 2 11:51:04 2016 +0900

    bsd patch from netstar fixing threaded tempget
    
    this fixes T4945 .
---
 src/modules/temperature/e_mod_tempget.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/modules/temperature/e_mod_tempget.c 
b/src/modules/temperature/e_mod_tempget.c
index d4078c3..cadbc4d 100644
--- a/src/modules/temperature/e_mod_tempget.c
+++ b/src/modules/temperature/e_mod_tempget.c
@@ -93,7 +93,7 @@ init(Tempthread *tth)
 #ifdef __OpenBSD__
    int dev, numt;
    struct sensordev snsrdev;
-   c size_t sdlen = sizeof(snsrdev);
+   size_t sdlen = sizeof(snsrdev);
 #endif
 #if defined (__FreeBSD__) || defined(__DragonFly__)
    unsigned i;
@@ -143,14 +143,14 @@ init(Tempthread *tth)
                }
              if (strcmp(snsrdev.xname, "cpu0") == 0)
                {
-                  sensor_type = SENSOR_TYPE_OPENBSD;
-                  sensor_name = strdup("cpu0");
+                  tth->sensor_type = SENSOR_TYPE_OPENBSD;
+                  tth->sensor_name = strdup("cpu0");
                   break;
                }
              else if (strcmp(snsrdev.xname, "km0") == 0)
                {
-                  sensor_type = SENSOR_TYPE_OPENBSD;
-                  sensor_name = strdup("km0");
+                  tth->sensor_type = SENSOR_TYPE_OPENBSD;
+                  tth->sensor_name = strdup("km0");
                   break;
                }
           }

-- 


Reply via email to