Skip to content

Commit

Permalink
[vm/io] Fix FileSystemWatcher enum name typo.
Browse files Browse the repository at this point in the history
Change-Id: Ie9f2e10847caf794ddc79229ce7bd35a3909896d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161600
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
  • Loading branch information
aam authored and commit-bot@chromium.org committed Sep 2, 2020
1 parent 000f313 commit 0a036db
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/bin/file_system_watcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FileSystemWatcher {
kModifyContent = 1 << 1,
kDelete = 1 << 2,
kMove = 1 << 3,
kModefyAttribute = 1 << 4,
kModifyAttribute = 1 << 4,
kDeleteSelf = 1 << 5,
kIsDir = 1 << 6
};
Expand Down
2 changes: 1 addition & 1 deletion runtime/bin/file_system_watcher_android.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int InotifyEventToMask(struct inotify_event* e) {
mask |= FileSystemWatcher::kModifyContent;
}
if ((e->mask & IN_ATTRIB) != 0) {
mask |= FileSystemWatcher::kModefyAttribute;
mask |= FileSystemWatcher::kModisfyAttribute;
}
if ((e->mask & IN_CREATE) != 0) {
mask |= FileSystemWatcher::kCreate;
Expand Down
2 changes: 1 addition & 1 deletion runtime/bin/file_system_watcher_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int InotifyEventToMask(struct inotify_event* e) {
mask |= FileSystemWatcher::kModifyContent;
}
if ((e->mask & IN_ATTRIB) != 0) {
mask |= FileSystemWatcher::kModefyAttribute;
mask |= FileSystemWatcher::kModifyAttribute;
}
if ((e->mask & IN_CREATE) != 0) {
mask |= FileSystemWatcher::kCreate;
Expand Down
2 changes: 1 addition & 1 deletion runtime/bin/file_system_watcher_macos.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) {
mask |= kModifyContent;
}
if ((flags & kFSEventStreamEventFlagItemXattrMod) != 0) {
mask |= kModefyAttribute;
mask |= kModifyAttribute;
}
if ((flags & kFSEventStreamEventFlagItemCreated) != 0) {
mask |= kCreate;
Expand Down

0 comments on commit 0a036db

Please sign in to comment.