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 #1454 from rubenk/libi2c-dev-mark-as-linux-only
[collectd.git]
/
src
/
utils_mount.c
diff --git
a/src/utils_mount.c
b/src/utils_mount.c
index
afeb39e
..
f2b7943
100644
(file)
--- a/
src/utils_mount.c
+++ b/
src/utils_mount.c
@@
-760,13
+760,13
@@
void cu_mount_freelist (cu_mount_t *list)
char *
cu_mount_checkoption(char *line, char *keyword, int full)
{
char *
cu_mount_checkoption(char *line, char *keyword, int full)
{
- char *line2, *l2;
- int l = strlen(keyword);
- char *p1, *p2;
+ char *line2, *l2, *p1, *p2;
+ int l;
if(line == NULL || keyword == NULL) {
return NULL;
}
if(line == NULL || keyword == NULL) {
return NULL;
}
+
if(full != 0) {
full = 1;
}
if(full != 0) {
full = 1;
}
@@
-780,6
+780,7
@@
cu_mount_checkoption(char *line, char *keyword, int full)
l2++;
}
l2++;
}
+ l = strlen(keyword);
p1 = line - 1;
p2 = strchr(line, ',');
do {
p1 = line - 1;
p2 = strchr(line, ',');
do {