1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-14 19:39:47 +00:00

fix for compiling on freebsd

This commit is contained in:
Phil Sutter 2009-11-18 13:15:34 +01:00
parent b6a57a8f77
commit d4bc07b1f1
2 changed files with 3 additions and 1 deletions

View File

@ -3306,10 +3306,12 @@ char load_config_file(const char *f)
CONF("no_buffers") {
no_buffers = string_to_bool(value);
}
#ifdef __linux__
CONF("top_name_width") {
if (set_top_name_width(value))
CONF_ERR;
}
#endif /* __linux__ */
CONF("top_cpu_separate") {
cpu_separate = string_to_bool(value);
}

View File

@ -1714,7 +1714,7 @@ int extract_variable_text_internal(struct text_object *retval, const char *const
}
/* copy variable to buffer */
len = (p - s > text_buffer_size-1) ? text_buffer_size-1 : (p - s);
len = (p - s > (int)text_buffer_size-1) ? (int)text_buffer_size-1 : (p - s);
strncpy(buf, s, len);
buf[len] = '\0';