summaryrefslogtreecommitdiff
path: root/lib/prstreams/prstrms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prstreams/prstrms.cpp')
-rw-r--r--lib/prstreams/prstrms.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/prstreams/prstrms.cpp b/lib/prstreams/prstrms.cpp
index d601fce2..878175df 100644
--- a/lib/prstreams/prstrms.cpp
+++ b/lib/prstreams/prstrms.cpp
@@ -115,7 +115,7 @@ PRfilebuf *PRfilebuf::open(
_opened = true;
if (ate &&
- seekoff(0, ios_base::end, flags) == pos_type(traits_type::eof())) {
+ seekoff(0, ios_base::end, flags) == pos_type(traits_type::eof())) {
close();
return NULL;
}
@@ -138,13 +138,14 @@ PRfilebuf *PRfilebuf::attach(PRFileDesc *fd)
PRfilebuf *PRfilebuf::close()
{
- if (_fd == NULL)
+ if (_fd == NULL) {
return NULL;
+ }
int status = sync();
if (PR_Close(_fd) == PR_FAILURE ||
- traits_type::eq_int_type(status, traits_type::eof())) {
+ traits_type::eq_int_type(status, traits_type::eof())) {
return NULL;
}