mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
small changes to let code compile with enable-testing
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1134 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
d87c2bd851
commit
b24e258165
14
src/conky.h
14
src/conky.h
@ -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);
|
||||
int *divisor, 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)
|
||||
#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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user