author | Florian Forster <octo@collectd.org> | |
Fri, 20 Nov 2015 13:16:04 +0000 (14:16 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 20 Nov 2015 13:16:04 +0000 (14:16 +0100) | ||
commit | 293131af8791d415123538382047bfb06e0b9c5d | |
tree | 7168906abe3a1a7c0bb8e510d29af1762d5003a9 | tree | snapshot |
parent | 374d5b33a80a31a9e25bc4b1e9404091a4017761 | commit | diff |
gps plugin: Coding style cleanup.
* Include <gps.h> and <pthread.h> unconditionally -- the code doesn't
compile without these headers.
* Convert all data in cgps_data_t to gauge_t.
* Rename the "gps_data_read" variable to "data", protected by "data_lock".
* Handle errors and continue, allowing the following code to be outdented.
* Add "satellites-visible" in addition to "satellites-used".
* Remove newlines from log messages. Unify prefix to "gps plugin:".
* Unify function and type names to use the "cgps_" prefix.
* Don't check for NULL when calling free().
* Include <gps.h> and <pthread.h> unconditionally -- the code doesn't
compile without these headers.
* Convert all data in cgps_data_t to gauge_t.
* Rename the "gps_data_read" variable to "data", protected by "data_lock".
* Handle errors and continue, allowing the following code to be outdented.
* Add "satellites-visible" in addition to "satellites-used".
* Remove newlines from log messages. Unify prefix to "gps plugin:".
* Unify function and type names to use the "cgps_" prefix.
* Don't check for NULL when calling free().
src/gps.c | diff | blob | history |