summaryrefslogtreecommitdiff
path: root/lcdgps.c
Commit message (Collapse)AuthorAgeFilesLines
* lcdgps: Fix typo in -V.Fred Wright2019-03-201-1/+1
| | | | | TESTED: Now shows correct program name in -V output.
* deg_to_s() and calls to it: Allow negative degrees, use fabs().Gary E. Miller2019-02-221-4/+8
| | | | | Every call to deg_to_s() was preceded by a fabs(deg). So move the fabs() into deg_to_s().
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-0/+4
|
* lcdgps: fix compiler warning about fall-through.Gary E. Miller2018-09-251-1/+3
|
* lcdgps: tweak usage().Gary E. Miller2018-09-251-18/+18
|
* gps_read(): fix some nasty buffer overruns and corruptions.Gary E. Miller2018-07-141-1/+1
| | | | | | | Now pass an optional message buffer to gps_read(). Finally the JSON display in cgps works. Thanks to Virgin Orbit for their support fixing this bug.
* lcdgps: fix %u to the correct %d.Gary E. Miller2017-07-261-1/+1
|
* Fixes spelling of "daemonization".Fred Wright2017-03-041-1/+1
| | | | | | | | Error messages related to daemonization failures had incorrect spelling. TESTED: Ran "scons build-all" on OSX.
* Whitespace cleanups related to recent changes.Fred Wright2017-02-201-1/+1
|
* Explicit marking of ignoring fprintf() resultRobert Norris2017-02-201-1/+1
| | | | | | | | | Ensure consistent marking of '(void)' for most normal usage of fprintf() TESTED: 'scons build-all check' passes Signed-off-by: Fred Wright <fw@fwright.net>
* Centralizes daemon() calls.Fred Wright2017-01-221-4/+2
| | | | | | | | | | | | | | | | This defines a new function os_daemon() (in os_compat.c), which is either the old replacement daemon() renamed, or a wrapper around the actual daemon() call. This allows any issues related to daemon() (which exist on some platforms) to be dealt with in one place. No such changes are present yet, so platforms giving warnings for the use of daemon() continue to do so, but now only in the compilation of os_compat.c. Unfortunately, the current build procedure typically compiles os_compat.c multiple times, so the warnings still appear multiple times. TESTED: Ran "scons build-all check" on OSX 10.9, OSX 10.12, Ubuntu 14, and FreeBSD 10.3.
* daemon() needs _DEFAULT_SOURCEGary E. Miller2016-08-151-0/+3
|
* Fix very minor bugs revealed by OWASP analysis.Eric S. Raymond2016-01-241-0/+1
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-8/+0
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* cppcheck and Coverity cleanup; all regression tests pass.Eric S. Raymond2015-02-091-0/+2
|
* Always use sizeof to get array sizeZbigniew Chyla2015-01-131-5/+5
| | | | | | Don't use constant/expression from an array's definition when referring to its size. Eliminates redundancy and avoids problems when array size changes. The change doesn't affect generated code.
* Full splint cleanup. Partial cppcheck cleanup.Eric S. Raymond2013-11-051-3/+3
|
* splint/cppcheck cleanup.Eric S. Raymond2013-09-171-8/+6
|
* Fix static-checker warnings. All regression tests pass.Eric S. Raymond2013-04-301-1/+2
| | | | | cppchecker now finds variables that could have reduced scope; that's most of these.
* Cosmetic fix. All regression tests and code audits pass.Eric S. Raymond2012-09-221-14/+14
|
* Lose the assumption that socket_t is an integer.Eric S. Raymond2012-09-221-1/+1
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-1/+1
|
* Replace exit(2) with exit(EXIT_FAILURE). None of these were documented.Eric S. Raymond2012-09-071-2/+2
| | | | | | | | This is a separate commit so we can revert it someday if making the distinction again comes to seem more important than struct mingw portability. All regression tests pass.
* Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})Eric S. Raymond2012-09-071-6/+6
| | | | Note there are some exit(2) instances we bneed to decide what to do with.
* Magic-number elimination.Eric S. Raymond2012-05-211-1/+1
|
* Clean up from cppcheck warnings. All regression tests pass.Eric S. Raymond2012-05-171-2/+2
|
* Make the Maidenhead convrter available in Python.Eric S. Raymond2011-03-291-3/+3
|
* splint-clean the Maidenhead translator and make it available for cgps.Eric S. Raymond2011-03-291-30/+0
| | | | All regression tests pass.
* Fix up the rather broken code for generating Maidenhead locators.Eric S. Raymond2011-03-291-31/+29
|
* Give gps_waiting() a timeout argument. Use it systematically in test clients.Eric S. Raymond2011-03-091-21/+3
| | | | cgps and gpxlogger are live-tested and work. All regression tests pass.
* Un-botch the #ifdef CLIMB removal.Eric S. Raymond2011-03-051-11/+0
|
* Merge branch 'master' of ssh://git.berlios.de/gitroot/gpsdEric S. Raymond2011-03-051-1/+0
|\
| * fix broken build of lcdgpsJon Schlueter2011-03-041-1/+0
| | | | | | | | not sure what correct behavior is after removing the ifdef CLIMB cruft
* | Revert "Fossil removal."Eric S. Raymond2011-03-051-0/+9
|/ | | | This reverts my commit of Fri 04 Mar 2011 16:40:20 -0500.
* Fossil removal.Eric S. Raymond2011-03-041-9/+0
|
* Remove a silly #ifdef.Eric S. Raymond2011-03-041-3/+0
|
* In gpxlogger, filter for device on the server rather than client side,Michael Tatarinov2011-02-141-5/+4
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* The raw_hook mwember and set_raw_hook are gone; client API cleanup is done.Eric S. Raymond2011-01-251-4/+2
|
* More deheader testing.Eric S. Raymond2011-01-121-1/+1
|
* deheader cleanup.Eric S. Raymond2011-01-121-1/+0
|
* Turf out yet another instance of the daemonize code.Eric S. Raymond2010-12-271-40/+6
|
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-1/+2
|
* Insert SuS headers required for portablity, as revealed by deheader.Eric S. Raymond2010-12-221-0/+3
|
* Correct a previous commit changing <time.h> to <sys/time.h> eceywhere.Eric S. Raymond2010-12-211-1/+1
| | | | <sys/time.h> is needed for select(2).
* Work around a splint bug.Eric S. Raymond2010-12-151-1/+1
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-151-0/+2
|
* Better approach to guarding some includes.Eric S. Raymond2010-12-141-3/+5
|
* Guard some headers fropm deheader.Eric S. Raymond2010-12-141-2/+4
|
* More header cleanup.Eric S. Raymond2010-12-141-2/+1
|
* missing headers for openbsdChris Kuethe2010-12-141-0/+2
|