9
9
* University of Stuttgart. All rights reserved.
10
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
11
* All rights reserved.
12
- * Copyright (c) 2008-2017 University of Houston. All rights reserved.
12
+ * Copyright (c) 2008-2018 University of Houston. All rights reserved.
13
13
* Copyright (c) 2015-2018 Research Organization for Information Science
14
14
* and Technology (RIST). All rights reserved.
15
15
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
@@ -164,15 +164,6 @@ int mca_common_ompio_file_open (ompi_communicator_t *comm,
164
164
goto fn_fail ;
165
165
}
166
166
167
- /* Set default file view */
168
- mca_common_ompio_set_view (ompio_fh ,
169
- 0 ,
170
- & ompi_mpi_byte .dt ,
171
- & ompi_mpi_byte .dt ,
172
- "native" ,
173
- info );
174
-
175
-
176
167
if ( true == use_sharedfp ) {
177
168
/* open the file once more for the shared file pointer if required.
178
169
** Can be disabled by the user if no shared file pointer operations
@@ -191,6 +182,15 @@ int mca_common_ompio_file_open (ompi_communicator_t *comm,
191
182
}
192
183
}
193
184
185
+ /* Set default file view */
186
+ mca_common_ompio_set_view (ompio_fh ,
187
+ 0 ,
188
+ & ompi_mpi_byte .dt ,
189
+ & ompi_mpi_byte .dt ,
190
+ "native" ,
191
+ info );
192
+
193
+
194
194
195
195
/* If file has been opened in the append mode, move the internal
196
196
file pointer of OMPIO to the very end of the file. */
@@ -506,7 +506,7 @@ int mca_common_ompio_file_delete (const char *filename,
506
506
return ret ;
507
507
}
508
508
509
- ret = fh -> f_fs -> fs_file_delete (filename , NULL );
509
+ ret = fh -> f_fs -> fs_file_delete ( ( char * ) filename , NULL );
510
510
free (fh );
511
511
512
512
if (OMPI_SUCCESS != ret ) {
0 commit comments