diff options
| author | Thomas Knudsen <lastname DOT firstname AT gmail DOT com> | 2016-05-11 08:58:28 +0200 |
|---|---|---|
| committer | Thomas Knudsen <lastname DOT firstname AT gmail DOT com> | 2016-05-11 08:58:28 +0200 |
| commit | f58ba586ebf11700317513f7bb5be84590d37a42 (patch) | |
| tree | 0961d66f6cc07f262ea45e23d55efcd4c90c25c2 /src/PJ_ob_tran.c | |
| parent | e8ed8e58e8f557fc6f9443a00af1e73a5956c759 (diff) | |
| download | PROJ-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_ob_tran.c')
| -rw-r--r-- | src/PJ_ob_tran.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PJ_ob_tran.c b/src/PJ_ob_tran.c index 76222fe9..634bb552 100644 --- a/src/PJ_ob_tran.c +++ b/src/PJ_ob_tran.c @@ -100,15 +100,15 @@ static void freeup (PJ *P) { PJ *PROJECTION(ob_tran) { + int i; + double phip; + char *name, *s; + struct pj_opaque *Q = pj_calloc (1, sizeof (struct pj_opaque)); if (0==Q) return freeup_new (P); P->opaque = Q; - int i; - double phip; - char *name, *s; - /* get name of projection to be translated */ if (!(name = pj_param(P->ctx, P->params, "so_proj").s)) E_ERROR(-26); for (i = 0; (s = pj_list[i].id) && strcmp(name, s) ; ++i) ; |
