Commit b4195ed7 authored by Alessandro Rubini's avatar Alessandro Rubini

lib: trivial warning fixes

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent cf4a7685
......@@ -7,3 +7,4 @@ fdelay-read
fdelay-fread
fdelay-pulse
fdelay-open-by-lun
fdelay-pulse-tom
\ No newline at end of file
......@@ -225,8 +225,9 @@ extern int fdelay_check_wr_mode(struct fdelay_board *userb)
float fdelay_read_temperature(struct fdelay_board *userb)
{
uint32_t t;
fdelay_sysfs_get(userb, "temperature", &t);
return (float) t/ 16.0;
uint32_t t;
__define_board(b, userb);
fdelay_sysfs_get(b, "temperature", &t);
return (float)t/16.0;
}
......@@ -133,7 +133,7 @@ void dump_ts(char *title, struct fdelay_time t)
int main(int argc, char **argv)
{
struct fdelay_time t_start, t_delta, t_width, t_current;
struct fdelay_time t_start, t_delta, t_width;
int mode = -1;
int channel = -1;
int count = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment