Skip to content

Commit aec5097

Browse files
committed
Fix unused return code warning in lockfile
Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 43ffa85 commit aec5097

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/sharedfp/lockedfile/sharedfp_lockedfile_seek.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "ompi/mca/sharedfp/sharedfp.h"
2929
#include "ompi/mca/sharedfp/base/base.h"
3030

31+
#include "opal/util/fd.h"
32+
3133
/*Use fcntl to lock the file which stores the current position*/
3234
#include <fcntl.h>
3335

@@ -119,7 +121,7 @@ mca_sharedfp_lockedfile_seek (ompio_file_t *fh,
119121
*--------------------
120122
*/
121123
lseek ( fd_lockedfilehandle, 0, SEEK_SET);
122-
write ( fd_lockedfilehandle, &offset, sizeof(OMPI_MPI_OFFSET_TYPE));
124+
opal_fd_write ( fd_lockedfilehandle, sizeof(OMPI_MPI_OFFSET_TYPE), &offset);
123125

124126
/*-------------------
125127
* unlock the file

0 commit comments

Comments
 (0)