projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb2155a
)
src/common.h: Add comment about return value of read_file_contents().
author
Florian Forster
<octo@collectd.org>
Mon, 19 Mar 2012 09:47:22 +0000
(10:47 +0100)
committer
Florian Forster
<octo@collectd.org>
Mon, 19 Mar 2012 09:47:22 +0000
(10:47 +0100)
src/common.h
patch
|
blob
|
history
diff --git
a/src/common.h
b/src/common.h
index
229f709
..
c292abf
100644
(file)
--- 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);