Skip to content

Commit

Permalink
Fix compilation errors (unused var, existing fcntl constants)
Browse files Browse the repository at this point in the history
  • Loading branch information
jivanpal committed Dec 30, 2023
1 parent 567fa16 commit 98a7244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/apfs/jconst.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ typedef enum {
*/
typedef uint16_t apfs_mode_t;

// These constants are usually already defined on Linux
#ifndef S_IFSOCK
#define S_IFMT 0170000

#define S_IFIFO 0010000
Expand All @@ -182,6 +184,7 @@ typedef uint16_t apfs_mode_t;
#define S_IFREG 0100000
#define S_IFLNK 0120000
#define S_IFSOCK 0140000
#endif
#define S_IFWHT 0160000

/** Directory Entry File Types **/
Expand Down
2 changes: 1 addition & 1 deletion src/commands/inspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ int cmd_inspect(int argc, char** argv) {
printf("\n");
}

// printf("- Found %zu records with FSOID %#"PRIx64".\n", num_records, fs_oid);
printf("- Found %zu records with FSOID %#"PRIx64".\n", num_records, fs_oid);
free_j_rec_array(fs_records);
}

Expand Down

0 comments on commit 98a7244

Please sign in to comment.