summaryrefslogtreecommitdiff
path: root/monitor_sirf.c
diff options
context:
space:
mode:
authorZbigniew Chyla <zbigniew.chyla@nsn.com>2015-02-16 01:30:08 +0100
committerEric S. Raymond <esr@thyrsus.com>2015-02-15 22:04:33 -0500
commit49fe1997713deac3440fbb2c960305762eb500f6 (patch)
treef78e265809be7e52b6f82893e830c76af46700f8 /monitor_sirf.c
parent68eaa6fc71f4d03b8d6fc3361569ba0906ee394d (diff)
downloadgpsd-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_sirf.c')
-rw-r--r--monitor_sirf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c
index e158b511..bf76c955 100644
--- a/monitor_sirf.c
+++ b/monitor_sirf.c
@@ -600,7 +600,7 @@ static void sirf_update(void)
(void)mvwprintw(mid7win, 2, 28, "> 1 day");
} else {
char buf2[TIMESPEC_LEN];
- (void)timespec_str( &timedelta, buf2, sizeof(buf2) );
+ timespec_str( &timedelta, buf2, sizeof(buf2) );
(void)mvwprintw(mid7win, 2, 32, "%s", buf2);
}
(void)wnoutrefresh(mid7win);