projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00efe8a
)
utils_mount.c: fix implicit conversion
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 31 May 2018 13:21:00 +0000
(15:21 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 31 May 2018 13:21:00 +0000
(15:21 +0200)
CC src/utils_mount.lo
src/utils_mount.c:710:7: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
l = strlen(keyword);
~ ^~~~~~~~~~~~~~~
1 warning generated.
src/utils_mount.c
patch
|
blob
|
history
diff --git
a/src/utils_mount.c
b/src/utils_mount.c
index
b8af367
..
e430cc9
100644
(file)
--- a/
src/utils_mount.c
+++ b/
src/utils_mount.c
@@
-688,7
+688,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;
-
in
t l;
+
size_
t l;
if (line == NULL || keyword == NULL) {
return NULL;