serial plugin: Fix -Wshorten-64-to-32 warning.
authorFlorian Forster <octo@collectd.org>
Fri, 3 Jul 2015 13:15:09 +0000 (15:15 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 3 Jul 2015 13:15:09 +0000 (15:15 +0200)
commit9bd400b6073c7ad4e3ba4b6f568fd7f608a4b02f
tree290c894373d711b3685278ba1baa87917e90480c
parent710586ae652d56ddeaafd530621e129a580fb780
serial plugin: Fix -Wshorten-64-to-32 warning.

serial.c:87:28: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
                len = strlen (fields[0]) - 1;
                    ~ ~~~~~~~~~~~~~~~~~~~^~~
serial.c:96:10: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
                        len = strlen (fields[i]);
                            ~ ^~~~~~~~~~~~~~~~~~
src/serial.c