Code

src/common.[ch]: read_file_contents: Use {s,}size_t rather than int.
[collectd.git] / src / common.h
index ae8e311f9983e8ff63441c0ab2936d287220ae67..7c0d9369cf498db70712958a6d593ccb0d58d3e8 100644 (file)
@@ -303,7 +303,7 @@ typedef int (*dirwalk_callback_f)(const char *dirname, const char *filename,
 int walk_directory (const char *dir, dirwalk_callback_f callback,
                void *user_data, int hidden);
 /* Returns the number of bytes read or negative on error. */
-int read_file_contents (const char *filename, char *buf, int bufsize);
+ssize_t read_file_contents (char const *filename, char *buf, size_t bufsize);
 
 counter_t counter_diff (counter_t old_value, counter_t new_value);