Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
aa78fce0
Commit
aa78fce0
authored
6 years ago
by
yinqiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style fix
parent
d3a9ea6b
master
0.9.8-rc01
0.9.7
0.9.7-rc03
0.9.7-rc02
0.9.7-rc01
0.9.6
0.9.6-rc03
0.9.6-rc02
0.9.6-rc01
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dir_reader_unix.h
src/butil/files/dir_reader_unix.h
+2
-4
No files found.
src/butil/files/dir_reader_unix.h
View file @
aa78fce0
...
...
@@ -44,8 +44,7 @@ class DirReaderUnix {
if
(
IGNORE_EINTR
(
close
(
fd_
)))
RAW_LOG
(
ERROR
,
"Failed to close directory handle"
);
}
if
(
NULL
!=
dir_
)
{
if
(
NULL
!=
dir_
){
closedir
(
dir_
);
}
}
...
...
@@ -57,8 +56,7 @@ class DirReaderUnix {
// Move to the next entry returning false if the iteration is complete.
bool
Next
()
{
int
err
=
readdir_r
(
dir_
,
&
entry_
,
&
current_
);
if
(
0
!=
err
||
NULL
==
current_
)
{
if
(
0
!=
err
||
NULL
==
current_
){
return
false
;
}
return
true
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment