Skip to content

Commit

Permalink
whooops: move that outside of an include guard
Browse files Browse the repository at this point in the history
  • Loading branch information
roblatham00 committed Apr 27, 2017
1 parent 3a4c042 commit 415004a
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions src/mpi/romio/adio/common/ad_fstype.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,19 @@ static struct ADIO_FSTypes fstypes[] = {
{ 0, 0, 0} /* guard entry */
};

/* return a pointer to the filesystem prefix
* Return 0 if not found */
const char * ADIO_FileTypeToPrefix (int filetype)
{
int i=0;
while (fstypes[i].fileops)
{
if (fstypes[i].fstype == filetype)
return fstypes[i].prefix;
++i;
}
return 0;
}

/*
ADIO_FileSysType_parentdir - determines a string pathname for the
Expand All @@ -190,20 +203,6 @@ Output Parameters:
*/
#ifdef ROMIO_NEEDS_ADIOPARENTDIR

/* return a pointer to the filesystem prefix
* Return 0 if not found */
const char * ADIO_FileTypeToPrefix (int filetype)
{
int i=0;
while (fstypes[i].fileops)
{
if (fstypes[i].fstype == filetype)
return fstypes[i].prefix;
++i;
}
return 0;
}

/* In a strict ANSI environment, S_ISLNK may not be defined. Fix that
here. We assume that S_ISLNK is *always* defined as a macro. If
that is not universally true, then add a test to the romio
Expand Down

0 comments on commit 415004a

Please sign in to comment.