diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 22:27:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 22:27:57 -0500 |
commit | ee0be19dda937dc2310ab3fda8c0da45b3e6217a (patch) | |
tree | 3288234a4ee758b3f70d024d92e3b956795bb135 /ntpshmmon.c | |
parent | ada2cedb7edd19d0284f420611cef7e7f9e05d33 (diff) | |
download | gpsd-ee0be19dda937dc2310ab3fda8c0da45b3e6217a.tar.gz |
splint cleanup. All regression tests pass.
Diffstat (limited to 'ntpshmmon.c')
-rw-r--r-- | ntpshmmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ntpshmmon.c b/ntpshmmon.c index 3e99f17d..ab2e0538 100644 --- a/ntpshmmon.c +++ b/ntpshmmon.c @@ -37,8 +37,8 @@ int main(int argc, char **argv) int option; int i; bool verbose = false; - int timeout = INT_MAX, nsamples = INT_MAX; - time_t starttime = time(NULL); + int nsamples = INT_MAX; + time_t timeout = (time_t)INT_MAX, starttime = time(NULL); #define USAGE "usage: ntpshmmon [-s] [-n max] [-t timeout] [-v] [-h] [-V]\n" while ((option = getopt(argc, argv, "hn:st:vV")) != -1) { @@ -56,7 +56,7 @@ int main(int argc, char **argv) } //break; case 't': - timeout = atoi(optarg); + timeout = (time_t)atoi(optarg); break; case 'v': verbose = true; @@ -123,7 +123,7 @@ int main(int argc, char **argv) /*@-mustfreefresh@*/ fprintf(stderr, "ntpshmmon: unknown status %d on segment %s\n", status, shm_name(i)); - /*@+mustfreefresh@*/ + /*@+mustfreefresh@*/ break; } } |