Skip to content

Commit 415004a

Browse files
committed
whooops: move that outside of an include guard
1 parent 3a4c042 commit 415004a

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

src/mpi/romio/adio/common/ad_fstype.c

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,19 @@ static struct ADIO_FSTypes fstypes[] = {
174174
{ 0, 0, 0} /* guard entry */
175175
};
176176

177+
/* return a pointer to the filesystem prefix
178+
* Return 0 if not found */
179+
const char * ADIO_FileTypeToPrefix (int filetype)
180+
{
181+
int i=0;
182+
while (fstypes[i].fileops)
183+
{
184+
if (fstypes[i].fstype == filetype)
185+
return fstypes[i].prefix;
186+
++i;
187+
}
188+
return 0;
189+
}
177190

178191
/*
179192
ADIO_FileSysType_parentdir - determines a string pathname for the
@@ -190,20 +203,6 @@ Output Parameters:
190203
*/
191204
#ifdef ROMIO_NEEDS_ADIOPARENTDIR
192205

193-
/* return a pointer to the filesystem prefix
194-
* Return 0 if not found */
195-
const char * ADIO_FileTypeToPrefix (int filetype)
196-
{
197-
int i=0;
198-
while (fstypes[i].fileops)
199-
{
200-
if (fstypes[i].fstype == filetype)
201-
return fstypes[i].prefix;
202-
++i;
203-
}
204-
return 0;
205-
}
206-
207206
/* In a strict ANSI environment, S_ISLNK may not be defined. Fix that
208207
here. We assume that S_ISLNK is *always* defined as a macro. If
209208
that is not universally true, then add a test to the romio

0 commit comments

Comments
 (0)