aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkOSFile_win.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-11-20 13:47:49 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-20 13:47:49 -0800
commitd76be9c79baa1530d3dc95c58022e83607a1bb2a (patch)
treeebab3adf39a9eee73f1284517eba04d1ca82fa47 /src/ports/SkOSFile_win.cpp
parent90ba095c459e38581353073826785074b5953b8c (diff)
Eliminate SkFILE: it always is the same as FILE.
Diffstat (limited to 'src/ports/SkOSFile_win.cpp')
-rw-r--r--src/ports/SkOSFile_win.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ports/SkOSFile_win.cpp b/src/ports/SkOSFile_win.cpp
index 395a3c80a9..6bdf9ab163 100644
--- a/src/ports/SkOSFile_win.cpp
+++ b/src/ports/SkOSFile_win.cpp
@@ -33,7 +33,7 @@ typedef struct {
ULONGLONG fMsbSize;
} SkFILEID;
-static bool sk_ino(SkFILE* f, SkFILEID* id) {
+static bool sk_ino(FILE* f, SkFILEID* id) {
int fileno = _fileno((FILE*)f);
if (fileno < 0) {
return false;
@@ -56,7 +56,7 @@ static bool sk_ino(SkFILE* f, SkFILEID* id) {
return true;
}
-bool sk_fidentical(SkFILE* a, SkFILE* b) {
+bool sk_fidentical(FILE* a, FILE* b) {
SkFILEID aID, bID;
return sk_ino(a, &aID) && sk_ino(b, &bID)
&& aID.fLsbSize == bID.fLsbSize
@@ -111,11 +111,11 @@ void* sk_fdmmap(int fileno, size_t* length) {
return addr;
}
-int sk_fileno(SkFILE* f) {
+int sk_fileno(FILE* f) {
return _fileno((FILE*)f);
}
-void* sk_fmmap(SkFILE* f, size_t* length) {
+void* sk_fmmap(FILE* f, size_t* length) {
int fileno = sk_fileno(f);
if (fileno < 0) {
return nullptr;