Skip to content

Commit 641e492

Browse files
committed
Small fixes
1 parent 7b842dd commit 641e492

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Src/Files/Paths.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ namespace p
402402
struct statfs statfsbuf;
403403
statfs(path.data(), &statfsbuf);
404404

405-
switch (statfsbuf.f_type | 0UL)
405+
switch (u32(statfsbuf.f_type))
406406
{
407407
case P_MAGIC_FUSEBLK: /* 0x65735546 remote */
408408
{

Src/PipeFiles.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ namespace p
557557
GenericWatch(FileWatchId id, StringView path, FileWatchCallback callback,
558558
GenericFileWatcher* fileWatcher, bool recursive);
559559
~GenericWatch();
560+
GenericWatch(const GenericWatch& other) = delete;
561+
GenericWatch& operator=(const GenericWatch& other) = delete;
560562

561563
void Watch();
562564
void WatchDir(StringView dir);
@@ -937,8 +939,6 @@ namespace p
937939
{
938940
return this;
939941
}
940-
GenericDirWatch* watcher = nullptr;
941-
942942
for (const auto& dir : directories)
943943
{
944944
if (GenericDirWatch* watcher = dir.second->FindDirWatcher(path))

0 commit comments

Comments
 (0)