@@ -260,8 +260,9 @@ void ADIOI_NFS_WriteStrided(ADIO_File fd, const void *buf, int count,
260260/* offset is in units of etype relative to the filetype. */
261261
262262 ADIOI_Flatlist_node * flat_buf , * flat_file ;
263- int i , j , k , err = -1 , bwr_size , fwr_size = 0 , st_index = 0 ;
264- int bufsize , num , size , sum , n_etypes_in_filetype , size_in_filetype ;
263+ int i , j , k , err = -1 , bwr_size , st_index = 0 ;
264+ int num , size , sum , n_etypes_in_filetype , size_in_filetype ;
265+ MPI_Count bufsize ;
265266 int n_filetypes , etype_in_filetype ;
266267 ADIO_Offset abs_off_in_filetype = 0 ;
267268 int req_len ;
@@ -271,8 +272,9 @@ void ADIOI_NFS_WriteStrided(ADIO_File fd, const void *buf, int count,
271272 ADIO_Offset userbuf_off ;
272273 ADIO_Offset off , req_off , disp , end_offset = 0 , writebuf_off , start_off ;
273274 char * writebuf = NULL , * value ;
274- int st_fwr_size , st_n_filetypes , writebuf_len , write_sz ;
275- int new_bwr_size , new_fwr_size , err_flag = 0 , info_flag , max_bufsize ;
275+ int st_n_filetypes , writebuf_len , write_sz ;
276+ ADIO_Offset fwr_size = 0 , new_fwr_size , st_fwr_size ;
277+ int new_bwr_size , err_flag = 0 , info_flag , max_bufsize ;
276278 static char myname [] = "ADIOI_NFS_WRITESTRIDED" ;
277279
278280 ADIOI_Datatype_iscontig (datatype , & buftype_is_contig );
@@ -553,12 +555,13 @@ void ADIOI_NFS_WriteStrided(ADIO_File fd, const void *buf, int count,
553555 else {
554556/* noncontiguous in memory as well as in file */
555557
558+ ADIO_Offset i ;
556559 ADIOI_Flatten_datatype (datatype );
557560 flat_buf = ADIOI_Flatlist ;
558561 while (flat_buf -> type != datatype ) flat_buf = flat_buf -> next ;
559562
560563 k = num = buf_count = 0 ;
561- i = ( int ) ( flat_buf -> indices [0 ]) ;
564+ i = flat_buf -> indices [0 ];
562565 j = st_index ;
563566 off = offset ;
564567 n_filetypes = st_n_filetypes ;
@@ -604,8 +607,8 @@ void ADIOI_NFS_WriteStrided(ADIO_File fd, const void *buf, int count,
604607
605608 k = (k + 1 )%flat_buf -> count ;
606609 buf_count ++ ;
607- i = ( int ) ( buftype_extent * (buf_count /flat_buf -> count ) +
608- flat_buf -> indices [k ]) ;
610+ i = buftype_extent * (buf_count /flat_buf -> count ) +
611+ flat_buf -> indices [k ];
609612 new_bwr_size = flat_buf -> blocklens [k ];
610613 if (size != fwr_size ) {
611614 off += size ;
0 commit comments