[Libsysio-commit] strided-io: libsysio/drivers/native fs_native.c
Brought to you by:
lward
|
From: Lee W. <lw...@us...> - 2004-01-30 20:49:10
|
Update of /cvsroot/libsysio/libsysio/drivers/native In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6492 Modified Files: Tag: strided-io fs_native.c Log Message: Sonja didn't actually compile the previous revision. It contained syntax errors. Sonja's editor autowraps long lines? Added a new line. Consistency is the hobgoblin of small minds. I have a *very* small mind :-) So, changed to reflect the style of the file; + spaces around binary operators + indenting now consistent with other multiline arg passing + a * b, then b * a fixed to have the same sub-expression in the same order on two lines. Index: fs_native.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v retrieving revision 1.25.6.6 retrieving revision 1.25.6.7 diff -u -w -b -B -p -r1.25.6.6 -r1.25.6.7 --- fs_native.c 28 Jan 2004 13:53:53 -0000 1.25.6.6 +++ fs_native.c 29 Jan 2004 20:41:33 -0000 1.25.6.7 @@ -1319,11 +1319,12 @@ doio(char op, struct ioctx *ioctx) * Must lock the regions (in order!) since we can't do * strided-IO as a single atomic operation. */ - oxtv = malloc(sizeof(struct intnl_xtvec)*ioctx->ioctx_xtvlen); + oxtv = malloc(ioctx->ioctx_xtvlen * sizeof(struct intnl_xtvec)); if (!oxtv) return -ENOMEM; - (void )memcpy(oxtv, ioctx->ioctx_xtv, - (ioctx->ioctx_xtvlen*sizeof(struct intnl_xtvec))); + (void )memcpy(oxtv, + ioctx->ioctx_xtv, + ioctx->ioctx_xtvlen * sizeof(struct intnl_xtvec)); qsort(oxtv, ioctx->ioctx_xtvlen, sizeof(struct intnl_xtvec), |