Skip to content

Commit

Permalink
Use uintmax_t instead of ino_t ...
Browse files Browse the repository at this point in the history
... so the size is not affected by the definition of _FILE_OFFSET_BITS
  • Loading branch information
peadar committed Jul 13, 2024
1 parent 5681495 commit 7bcbdb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libpstack/proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ struct PrintableFrame;
struct DevNode {
int major = -1;
int minor = -1;
ino_t inode = -1;
uintmax_t inode = 0;
std::string path;
bool operator == (const DevNode &rhs) const {
return major == rhs.major && minor == rhs.minor && inode == rhs.inode;
Expand Down
2 changes: 1 addition & 1 deletion live.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Process::procAddressSpace(const std::string &fn) {
uintptr_t start, end;
off_t offset;
int major, minor;
ino_t inode;
uintmax_t inode;
std::string perms, path;
char colon, minus;
lineStream >> std::hex >> start >> minus >> end >> perms >> offset >>
Expand Down

0 comments on commit 7bcbdb7

Please sign in to comment.