diff options
author | Zbigniew Chyla <zbigniew.chyla@nsn.com> | 2015-02-16 01:30:08 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-15 22:04:33 -0500 |
commit | 49fe1997713deac3440fbb2c960305762eb500f6 (patch) | |
tree | f78e265809be7e52b6f82893e830c76af46700f8 /monitor_ubx.c | |
parent | 68eaa6fc71f4d03b8d6fc3361569ba0906ee394d (diff) | |
download | gpsd-49fe1997713deac3440fbb2c960305762eb500f6.tar.gz |
Remove unused and incorrect retval from timespec_str
All callers ignore value returned by timespec_str. Additionally, the
function returns simply the result of snprintf(), which is not
necessarily the number of chars written to the buffer (if the buffer
provided by the caller was too small).
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r-- | monitor_ubx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index 44ec5dd0..c0cfab3f 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -267,7 +267,7 @@ static void ubx_update(void) (void)mvwprintw(ppswin, 1, 6, "> 1 day"); } else { char buf2[TIMESPEC_LEN]; - (void)timespec_str( &timedelta, buf2, sizeof(buf2) ); + timespec_str( &timedelta, buf2, sizeof(buf2) ); (void)mvwprintw(ppswin, 1, 6, "%s", buf2); } (void)wnoutrefresh(ppswin); |