aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_nsper.c
diff options
context:
space:
mode:
authorThomas Knudsen <lastname DOT firstname AT gmail DOT com>2016-05-11 08:58:28 +0200
committerThomas Knudsen <lastname DOT firstname AT gmail DOT com>2016-05-11 08:58:28 +0200
commitf58ba586ebf11700317513f7bb5be84590d37a42 (patch)
tree0961d66f6cc07f262ea45e23d55efcd4c90c25c2 /src/PJ_nsper.c
parente8ed8e58e8f557fc6f9443a00af1e73a5956c759 (diff)
downloadPROJ-f58ba586ebf11700317513f7bb5be84590d37a42.tar.gz
PROJ-f58ba586ebf11700317513f7bb5be84590d37a42.zip
Portability cleanups for the code in PR #6 (and a few additional source files)
Eliminated mixed code and declarations, converted C++ style comments and probably did a few more things highlighted by running gcc with the "-W -Wall -Wextra -pedantic" flags
Diffstat (limited to 'src/PJ_nsper.c')
-rw-r--r--src/PJ_nsper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_nsper.c b/src/PJ_nsper.c
index 2a0ea702..7e3fcda8 100644
--- a/src/PJ_nsper.c
+++ b/src/PJ_nsper.c
@@ -180,13 +180,13 @@ PJ *PROJECTION(nsper) {
PJ *PROJECTION(tpers) {
+ double omega, gamma;
+
struct pj_opaque *Q = pj_calloc (1, sizeof (struct pj_opaque));
if (0==Q)
return freeup_new (P);
P->opaque = Q;
- double omega, gamma;
-
omega = pj_param(P->ctx, P->params, "dtilt").f * DEG_TO_RAD;
gamma = pj_param(P->ctx, P->params, "dazi").f * DEG_TO_RAD;
Q->tilt = 1;