diff options
| author | Kurt Schwehr <schwehr@google.com> | 2018-05-04 09:01:27 -0700 |
|---|---|---|
| committer | Kurt Schwehr <schwehr@google.com> | 2018-05-04 09:01:27 -0700 |
| commit | 72016ab016efe153f475a38596586fecd5b996d2 (patch) | |
| tree | f2d168a20dcd482448bdf73799f2e209c1e3b91a /src/pj_gridcatalog.c | |
| parent | 2f467d57d1846857eb8ac7e855646c19d6b66737 (diff) | |
| download | PROJ-72016ab016efe153f475a38596586fecd5b996d2.tar.gz PROJ-72016ab016efe153f475a38596586fecd5b996d2.zip | |
Convert errno literals to corresponding PJD symbol
Diffstat (limited to 'src/pj_gridcatalog.c')
| -rw-r--r-- | src/pj_gridcatalog.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pj_gridcatalog.c b/src/pj_gridcatalog.c index 8777185b..0498d5b0 100644 --- a/src/pj_gridcatalog.c +++ b/src/pj_gridcatalog.c @@ -139,8 +139,8 @@ int pj_gc_apply_gridshift( PJ *defn, int inverse, &(defn->last_after_date)); if( defn->last_after_grid == NULL ) { - pj_ctx_set_errno( defn->ctx, -38 ); - return -38; + pj_ctx_set_errno( defn->ctx, PJD_ERR_FAILED_TO_LOAD_GRID ); + return PJD_ERR_FAILED_TO_LOAD_GRID; } } gi = defn->last_after_grid; @@ -149,8 +149,8 @@ int pj_gc_apply_gridshift( PJ *defn, int inverse, /* load the grid shift info if we don't have it. */ if( gi->ct->cvs == NULL && !pj_gridinfo_load( defn->ctx, gi ) ) { - pj_ctx_set_errno( defn->ctx, -38 ); - return -38; + pj_ctx_set_errno( defn->ctx, PJD_ERR_FAILED_TO_LOAD_GRID ); + return PJD_ERR_FAILED_TO_LOAD_GRID; } output_after = nad_cvt( input, inverse, gi->ct ); @@ -187,8 +187,8 @@ int pj_gc_apply_gridshift( PJ *defn, int inverse, &(defn->last_before_date)); if( defn->last_before_grid == NULL ) { - pj_ctx_set_errno( defn->ctx, -38 ); - return -38; + pj_ctx_set_errno( defn->ctx, PJD_ERR_FAILED_TO_LOAD_GRID ); + return PJD_ERR_FAILED_TO_LOAD_GRID; } } @@ -198,8 +198,8 @@ int pj_gc_apply_gridshift( PJ *defn, int inverse, /* load the grid shift info if we don't have it. */ if( gi->ct->cvs == NULL && !pj_gridinfo_load( defn->ctx, gi ) ) { - pj_ctx_set_errno( defn->ctx, -38 ); - return -38; + pj_ctx_set_errno( defn->ctx, PJD_ERR_FAILED_TO_LOAD_GRID ); + return PJD_ERR_FAILED_TO_LOAD_GRID; } output_before = nad_cvt( input, inverse, gi->ct ); |
