small changes to let code compile with enable-testing
authorNikolas Garofil <ngarofil@users.sourceforge.net>
Fri, 6 Jun 2008 12:14:15 +0000 (12:14 +0000)
committerNikolas Garofil <ngarofil@users.sourceforge.net>
Fri, 6 Jun 2008 12:14:15 +0000 (12:14 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1134 7f574dfc-610e-0410-a909-a81674777703

src/conky.h
src/linux.c

index 33a829e..970f0d1 100644 (file)
@@ -591,14 +591,14 @@ int get_laptop_mode(void);
 void update_gateway_info(void);
 
 int open_sysfs_sensor(const char *dir, const char *dev, const char *type, int n,
-       int *div, char *devtype);
-
-#define open_i2c_sensor(dev, type, n, div, devtype) \
-       open_sysfs_sensor("/sys/bus/i2c/devices/", dev, type, n, div, devtype)
-#define open_platform_sensor(dev, type, n, div, devtype) \
-       open_sysfs_sensor("/sys/bus/platform/devices/", dev, type, n, div, devtype)
-#define open_hwmon_sensor(dev, type, n, div, devtype) \
-       open_sysfs_sensor("/sys/class/hwmon/", dev, type, n, div, devtype)
+       int *divisor, char *devtype);
+
+#define open_i2c_sensor(dev, type, n, divisor, devtype) \
+       open_sysfs_sensor("/sys/bus/i2c/devices/", dev, type, n, divisor, devtype)
+#define open_platform_sensor(dev, type, n, divisor, devtype) \
+       open_sysfs_sensor("/sys/bus/platform/devices/", dev, type, n, divisor, devtype)
+#define open_hwmon_sensor(dev, type, n, divisor, devtype) \
+       open_sysfs_sensor("/sys/class/hwmon/", dev, type, n, divisor, devtype)
 
 double get_sysfs_info(int *fd, int arg, char *devtype, char *type);
 
index 4576c93..5449656 100644 (file)
@@ -261,7 +261,7 @@ END_TRUE:
                x = strndup(y, text_buffer_size); \
        }
 
-void update_gateway_info_failure(char *reason)
+void update_gateway_info_failure(const char *reason)
 {
        if(reason != NULL) {
                perror(reason);