Skip to content

Commit

Permalink
hds: hdsFind should return an int
Browse files Browse the repository at this point in the history
To be consistent with every other HDS C routine.
  • Loading branch information
timj committed Oct 31, 2014
1 parent 5b73a01 commit 2c4e543
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libext/hds-v5
Submodule hds-v5 updated 2 files
+2 −1 hds.h
+2 −1 hds_v5.h
3 changes: 2 additions & 1 deletion libraries/hds-v4/hds.h
Expand Up @@ -1109,7 +1109,8 @@ hdsClose(HDSLoc **locator, int *status);
/*===================================================================*/
/* hdsFind - Find an object (Fortran routine, requires hdsf library) */
/*===================================================================*/
void

int
hdsFind(const HDSLoc *locator1, const char *name, const char *mode, HDSLoc **locator2, int *status);


Expand Down
3 changes: 2 additions & 1 deletion libraries/hds-v4/hds_v4.h
Expand Up @@ -1106,7 +1106,8 @@ hdsClose_v4(HDSLoc **locator, int *status);
/*===================================================================*/
/* hdsFind - Find an object (Fortran routine, requires hdsf library) */
/*===================================================================*/
void

int
hdsFind_v4(const HDSLoc *locator1, const char *name, const char *mode, HDSLoc **locator2, int *status);


Expand Down
3 changes: 2 additions & 1 deletion libraries/hds/hds.h
Expand Up @@ -1106,7 +1106,8 @@ hdsClose(HDSLoc **locator, int *status);
/*===================================================================*/
/* hdsFind - Find an object (Fortran routine, requires hdsf library) */
/*===================================================================*/
void

int
hdsFind(const HDSLoc *locator1, const char *name, const char *mode, HDSLoc **locator2, int *status);


Expand Down
4 changes: 2 additions & 2 deletions libraries/hds/hdsFind.c
Expand Up @@ -73,7 +73,7 @@ F77_SUBROUTINE( hds_find )( CHARACTER( floc1 ),
* status = global status
*
*/
void hdsFind( const HDSLoc *loc1, const char *name, const char *mode,
int hdsFind( const HDSLoc *loc1, const char *name, const char *mode,
HDSLoc **loc2, int *status )
{
DECLARE_CHARACTER(floc1,DAT__SZLOC);
Expand Down Expand Up @@ -103,5 +103,5 @@ void hdsFind( const HDSLoc *loc1, const char *name, const char *mode,
F77_FREE_CHARACTER( fmode );
HDS_IMPORT_FLOCATOR( floc2, loc2, status );
F77_IMPORT_INTEGER( fstatus, *status );
return;
return *status;
}

0 comments on commit 2c4e543

Please sign in to comment.