Skip to content

Commit

Permalink
hds: datAlter must lose the const modifier
Browse files Browse the repository at this point in the history
In v5 the locator is modified (not unreasonably) when the dimensionality
is changed.
  • Loading branch information
timj committed Oct 31, 2014
1 parent 6c42e74 commit 515b1b4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libext/hds-v5
Submodule hds-v5 updated 11 files
+3 −0 Makefile.am
+57 −8 dat1DumpLoc.c
+7 −3 datAlter.c
+12 −0 datCell.c
+4 −1 datIndex.c
+43 −7 datTemp.c
+13 −13 datType.c
+1 −1 hds.h
+13 −8 hdsGtune.c
+6 −0 hds_fortran.h
+1 −1 hds_v5.h
2 changes: 1 addition & 1 deletion libraries/hds-v4/datalter.c
Expand Up @@ -22,7 +22,7 @@
/* DAT_ALTER - Alter size of object */
/*==================================*/
int
datAlter(const HDSLoc *locator,
datAlter(HDSLoc *locator,
int ndim,
const HDS_PTYPE dims[],
int *status)
Expand Down
2 changes: 1 addition & 1 deletion libraries/hds-v4/hds.h
Expand Up @@ -20,7 +20,7 @@
/*=================================*/

int
datAlter(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status);
datAlter(HDSLoc *locator, int ndim, const hdsdim dims[], int *status);

/*==========================*/
/* datAnnul - Annul locator */
Expand Down
2 changes: 1 addition & 1 deletion libraries/hds-v4/hds_v4.h
Expand Up @@ -17,7 +17,7 @@ building the library or using the installed version */
/*=================================*/

int
datAlter_v4(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status);
datAlter_v4(HDSLoc *locator, int ndim, const hdsdim dims[], int *status);

/*==========================*/
/* datAnnul - Annul locator */
Expand Down
2 changes: 1 addition & 1 deletion libraries/hds/hds.h
Expand Up @@ -17,7 +17,7 @@
/*=================================*/

int
datAlter(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status);
datAlter(HDSLoc *locator, int ndim, const hdsdim dims[], int *status);

/*==========================*/
/* datAnnul - Annul locator */
Expand Down
2 changes: 1 addition & 1 deletion libraries/hds/hds_select.c
Expand Up @@ -23,7 +23,7 @@ static void EnterCheck( const char * func, int status ) { printf("Enter HDS rout
/*=================================*/

int
datAlter(const HDSLoc *locator, int ndim, const hdsdim dims[], int *status) {
datAlter(HDSLoc *locator, int ndim, const hdsdim dims[], int *status) {

int retval = 0;
int instat = *status;
Expand Down

0 comments on commit 515b1b4

Please sign in to comment.