diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-21 21:13:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-22 12:26:41 +0000 |
commit | 7dd0898578f9825fe470d58ed2d0e5bc155b66c7 (patch) | |
tree | 4ff8f8a42032d0013ce049694e5a4d23b42cc7fa /cosv | |
parent | d7eb0ef560fb6b549f0054140e3b42d0a991bffe (diff) |
WaE: ignoring return value of 'fwrite'
Diffstat (limited to 'cosv')
-rw-r--r-- | cosv/source/storage/file.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cosv/source/storage/file.cxx b/cosv/source/storage/file.cxx index 16665d75e64e..0618fae227ec 100644 --- a/cosv/source/storage/file.cxx +++ b/cosv/source/storage/file.cxx @@ -104,9 +104,8 @@ File::do_write( const void * i_pSrc, if ( eLastIO == io_write ) ::fseek( pStream, 0, SEEK_CUR ); - uintt ret = position(); - ::fwrite( i_pSrc, 1, i_nNrofBytes, pStream ); - ret = position() - ret; + + uintt ret = ::fwrite( i_pSrc, 1, i_nNrofBytes, pStream ); eLastIO = io_write; return ret; |