1
0
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:
Nikolas Garofil 2008-06-06 12:14:15 +00:00
parent d87c2bd851
commit b24e258165
2 changed files with 8 additions and 8 deletions

View File

@ -591,14 +591,14 @@ int get_laptop_mode(void);
void update_gateway_info(void); void update_gateway_info(void);
int open_sysfs_sensor(const char *dir, const char *dev, const char *type, int n, 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) \ #define open_i2c_sensor(dev, type, n, divisor, devtype) \
open_sysfs_sensor("/sys/bus/i2c/devices/", dev, type, n, div, devtype) open_sysfs_sensor("/sys/bus/i2c/devices/", dev, type, n, divisor, devtype)
#define open_platform_sensor(dev, type, n, div, devtype) \ #define open_platform_sensor(dev, type, n, divisor, devtype) \
open_sysfs_sensor("/sys/bus/platform/devices/", dev, type, n, div, devtype) open_sysfs_sensor("/sys/bus/platform/devices/", dev, type, n, divisor, devtype)
#define open_hwmon_sensor(dev, type, n, div, devtype) \ #define open_hwmon_sensor(dev, type, n, divisor, devtype) \
open_sysfs_sensor("/sys/class/hwmon/", dev, type, n, div, devtype) open_sysfs_sensor("/sys/class/hwmon/", dev, type, n, divisor, devtype)
double get_sysfs_info(int *fd, int arg, char *devtype, char *type); double get_sysfs_info(int *fd, int arg, char *devtype, char *type);

View File

@ -261,7 +261,7 @@ END_TRUE:
x = strndup(y, text_buffer_size); \ x = strndup(y, text_buffer_size); \
} }
void update_gateway_info_failure(char *reason) void update_gateway_info_failure(const char *reason)
{ {
if(reason != NULL) { if(reason != NULL) {
perror(reason); perror(reason);