Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: fusl/src/dirent/seekdir.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/dirent/seekdir.c
diff --git a/fusl/src/dirent/seekdir.c b/fusl/src/dirent/seekdir.c
index 5be47d4a15564178eb84e73a0d9a9569fd8b30b3..ebe8080b6482fc73ea7cc67d830660b886a30a96 100644
--- a/fusl/src/dirent/seekdir.c
+++ b/fusl/src/dirent/seekdir.c
@@ -3,10 +3,9 @@
#include "__dirent.h"
#include "libc.h"
-void seekdir(DIR *dir, long off)
-{
- LOCK(dir->lock);
- dir->tell = lseek(dir->fd, off, SEEK_SET);
- dir->buf_pos = dir->buf_end = 0;
- UNLOCK(dir->lock);
+void seekdir(DIR* dir, long off) {
+ LOCK(dir->lock);
+ dir->tell = lseek(dir->fd, off, SEEK_SET);
+ dir->buf_pos = dir->buf_end = 0;
+ UNLOCK(dir->lock);
}

Powered by Google App Engine
This is Rietveld 408576698