From: Florian Forster Date: Mon, 19 Mar 2012 09:47:22 +0000 (+0100) Subject: src/common.h: Add comment about return value of read_file_contents(). X-Git-Tag: collectd-4.10.7~5 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=1cdf817c74f6c4e2136dce840ab33af072f91733 src/common.h: Add comment about return value of read_file_contents(). --- diff --git a/src/common.h b/src/common.h index 229f7098..c292abfd 100644 --- a/src/common.h +++ b/src/common.h @@ -283,6 +283,7 @@ typedef int (*dirwalk_callback_f)(const char *dirname, const char *filename, void *user_data); 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); counter_t counter_diff (counter_t old_value, counter_t new_value);