Skip to content

Commit

Permalink
add proper parentheses in IS_OPEN macro
Browse files Browse the repository at this point in the history
  • Loading branch information
tv-deusen authored Oct 19, 2019
1 parent 4ab73ff commit d28c588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/minifs.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define SEEK_CUR 1
#define SEEK_END 2

#define IS_OPEN(fd) fds && fds[fd].f != NULL
#define IS_OPEN(fd) (fds && (fds[fd].f != NULL))

typedef struct s_file {
char *name;
Expand Down

0 comments on commit d28c588

Please sign in to comment.