hameg-hmo: Fix some compiler warnings.

This commit is contained in:
Uwe Hermann 2016-01-28 18:46:55 +01:00
parent 8fff75196f
commit 650847e7d3
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@
*/
#include <config.h>
#include <math.h>
#include <stdlib.h>
#include "scpi.h"
#include "protocol.h"
@ -345,7 +347,7 @@ static int scope_state_get_array_option(struct sr_scpi_dev_inst *scpi,
* @return SR_ERR on any parsing error, SR_OK otherwise.
*/
static int array_float_get(gchar *value, const uint64_t array[][2],
int array_len, int *result)
int array_len, unsigned int *result)
{
int i;
uint64_t f;