aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_eqdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_eqdc.c')
-rw-r--r--src/PJ_eqdc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PJ_eqdc.c b/src/PJ_eqdc.c
index a7308335..917131e1 100644
--- a/src/PJ_eqdc.c
+++ b/src/PJ_eqdc.c
@@ -86,14 +86,14 @@ static void freeup (PJ *P) {
PJ *PROJECTION(eqdc) {
+ double cosphi, sinphi;
+ int secant;
+
struct pj_opaque *Q = pj_calloc (1, sizeof (struct pj_opaque));
if (0==Q)
return freeup_new (P);
P->opaque = Q;
- double cosphi, sinphi;
- int secant;
-
Q->phi1 = pj_param(P->ctx, P->params, "rlat_1").f;
Q->phi2 = pj_param(P->ctx, P->params, "rlat_2").f;
if (fabs(Q->phi1 + Q->phi2) < EPS10) E_ERROR(-21);