X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fted.c;h=186cf2b4bb1399b32fcfcbf3f585fe3b6539a715;hb=9a68f99cfe1d2f3013534b3018068f808a6823c4;hp=e76b3c9234f70878bf465ada946d6605642fdc86;hpb=0d9a0eb065fda6f89fc597e760ae56edd47337d9;p=collectd.git diff --git a/src/ted.c b/src/ted.c index e76b3c92..186cf2b4 100644 --- a/src/ted.c +++ b/src/ted.c @@ -70,7 +70,7 @@ static int ted_read_value(double *ret_power, double *ret_voltage) { unsigned char receive_buffer[300]; unsigned char package_buffer[300]; - char pkt_request[1] = {0xAA}; + unsigned char pkt_request[1] = {0xAA}; int package_buffer_pos; fd_set input; @@ -263,7 +263,7 @@ static int ted_open_device (void) return (0); } /* int ted_open_device */ -static void ted_submit (char *type, double value) +static void ted_submit (const char *type, double value) { value_t values[1]; value_list_t vl = VALUE_LIST_INIT;