summaryrefslogtreecommitdiff
path: root/contrib/lla2ecef.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-13 09:49:01 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-13 09:49:01 -0500
commitc93c46f0c10e56b52d3c980e7082ab74f7003f66 (patch)
tree2bfb119832f8a0deef0c9e0ce2d8ad3c76de5949 /contrib/lla2ecef.c
parent52d4e56c518adf59c3469b1d79eda7e4f56e7f5f (diff)
downloadgpsd-c93c46f0c10e56b52d3c980e7082ab74f7003f66.tar.gz
Warning cleanups.
Diffstat (limited to 'contrib/lla2ecef.c')
-rw-r--r--contrib/lla2ecef.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/lla2ecef.c b/contrib/lla2ecef.c
index 4ec12122..56c68184 100644
--- a/contrib/lla2ecef.c
+++ b/contrib/lla2ecef.c
@@ -3,21 +3,22 @@
*/
#include <sys/types.h>
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <math.h>
extern char *__progname;
double A = 6378137.0, B = 6356752.3142;
-double rad2deg(double r){
+static double rad2deg(double r){
return (180.0 * r / M_PI);
}
-double deg2rad(double r){
+static double deg2rad(double r){
return (M_PI * r / 180.0);
}
-void lla2ecef(double *lla, double *ecef){
+static void lla2ecef(double *lla, double *ecef){
double N;
lla[0] = deg2rad(lla[0]);
@@ -35,7 +36,7 @@ void lla2ecef(double *lla, double *ecef){
return;
}
-void ecef2lla(double *ecef, double *lla){
+static void ecef2lla(double *ecef, double *lla){
double E, F, N, P, T;
E = (pow(A,2) - pow(B,2)) / pow(A,2);