From: Charlie Root Date: Mon, 4 Apr 2016 07:19:12 +0000 (+0300) Subject: compiler warning fix X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=4ab85220ace5e9828d8ee090ff04c5f252462770;p=trinked.git compiler warning fix --- diff --git a/trinket.c b/trinket.c index 6ff5e4d..82822b3 100644 --- a/trinket.c +++ b/trinket.c @@ -174,7 +174,7 @@ trinketPing() { } if (r != sizeof(resp)) { - fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r, sizeof(resp)); + fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r, (unsigned int)sizeof(resp)); return ERR_ERROR; } @@ -247,7 +247,7 @@ trinketGetCumDose(double *value) { } if (r != sizeof(resp)) { - fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r, sizeof(resp)); + fprintf(stderr, "hid_read_timeout returns %d instead of %u\n", r, (unsigned int)sizeof(resp)); return ERR_ERROR; }