diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-03 13:29:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-03 13:41:13 +0100 |
commit | 0ab1c04df01830c5dcc319bcbecdcc4fc6051e60 (patch) | |
tree | 74d1b6a32f19c4282a434d6ef731dd4d84bcfc25 /vcl/source/fontsubset | |
parent | 9d87f2e2fc6fb20d183e1c8040594ccdcd62703d (diff) |
WaE: various warnings
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 44ac9414534f..443b93df8086 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -112,7 +112,7 @@ typedef struct { typedef struct { FILE *o; char buffer[HFORMAT_LINELEN]; - int bufpos; + size_t bufpos; int total; } HexFmt; @@ -435,15 +435,17 @@ static HexFmt *HexFmtNew(FILE *outf) return res; } -static void HexFmtFlush(HexFmt *_this) +static bool HexFmtFlush(HexFmt *_this) { + bool bRet = true; if (_this->bufpos) { - fwrite(_this->buffer, 1, _this->bufpos, _this->o); + size_t nWritten = fwrite(_this->buffer, 1, _this->bufpos, _this->o); + bRet = nWritten == _this->bufpos; _this->bufpos = 0; } + return bRet; } - _inline void HexFmtOpenString(HexFmt *_this) { fputs("<\n", _this->o); |