projects
/
project
/
ugps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove deprication warning
[project/ugps.git]
/
nmea.c
diff --git
a/nmea.c
b/nmea.c
index
1a3f94f
..
73ee722
100644
(file)
--- a/
nmea.c
+++ b/
nmea.c
@@
-16,7
+16,7
@@
* Copyright (C) 2014 John Crispin <blogic@openwrt.org>
*/
* Copyright (C) 2014 John Crispin <blogic@openwrt.org>
*/
-#define _
BSD
_SOURCE
+#define _
DEFAULT
_SOURCE
#define _XOPEN_SOURCE
#include <time.h>
#define _XOPEN_SOURCE
#include <time.h>
@@
-134,7
+134,7
@@
nmea_rmc_cb(void)
if (*nmea_params[4].str == 'S')
lat *= -1.0;
if (*nmea_params[6].str == 'W')
if (*nmea_params[4].str == 'S')
lat *= -1.0;
if (*nmea_params[6].str == 'W')
- lon *= -1.0;
+ lon *= -1.0;
snprintf(latitude, sizeof(latitude), "%f", lat);
snprintf(longitude, sizeof(longitude), "%f", lon);
snprintf(latitude, sizeof(latitude), "%f", lat);
snprintf(longitude, sizeof(longitude), "%f", lon);