projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3022 from rubenk/treewide-fix-some-style-issues
[collectd.git]
/
src
/
utils_mount.c
diff --git
a/src/utils_mount.c
b/src/utils_mount.c
index
b8af367
..
279f8e2
100644
(file)
--- a/
src/utils_mount.c
+++ b/
src/utils_mount.c
@@
-651,6
+651,8
@@
cu_mount_t *cu_mount_getlist(cu_mount_t **list) {
new = cu_mount_gen_getmntent();
#elif HAVE_SEQ_GETMNTENT
#error "This version of `getmntent' hat not yet been implemented!"
new = cu_mount_gen_getmntent();
#elif HAVE_SEQ_GETMNTENT
#error "This version of `getmntent' hat not yet been implemented!"
+#elif HAVE_GETMNTENT_R
+ new = cu_mount_getmntent();
#elif HAVE_ONE_GETMNTENT
new = cu_mount_getmntent();
#else
#elif HAVE_ONE_GETMNTENT
new = cu_mount_getmntent();
#else
@@
-688,7
+690,7
@@
void cu_mount_freelist(cu_mount_t *list) {
char *cu_mount_checkoption(char *line, const char *keyword, int full) {
char *line2, *l2, *p1, *p2;
char *cu_mount_checkoption(char *line, const char *keyword, int full) {
char *line2, *l2, *p1, *p2;
-
in
t l;
+
size_
t l;
if (line == NULL || keyword == NULL) {
return NULL;
if (line == NULL || keyword == NULL) {
return NULL;