Skip to content

Commit

Permalink
Cast dev and rdev to uint64 in order for openbsd to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 8, 2023
1 parent 41340d0 commit 5782629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Expand Up @@ -105,8 +105,8 @@ func (s *Server) infoToFileInfo(info os.FileInfo, relativepath, absolutepath str
if stat, ok := info.Sys().(*syscall.Stat_t); ok {
fi.Inode = stat.Ino
fi.Nlink = uint64(stat.Nlink) // force to uint64 for 32-bit systems
fi.Dev = stat.Dev
fi.Rdev = stat.Rdev
fi.Dev = uint64(stat.Dev)
fi.Rdev = uint64(stat.Rdev)
fi.Owner = stat.Uid
fi.Group = stat.Gid
fi.Permissions = stat.Mode
Expand Down

0 comments on commit 5782629

Please sign in to comment.