Skip to content

Commit

Permalink
lcfs-internal.h: Add min() macro
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Larsson <[email protected]>
  • Loading branch information
alexlarsson committed Sep 13, 2023
1 parent a4c4e88 commit 03ac5fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcomposefs/lcfs-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <unistd.h>

#define max(a, b) ((a > b) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))

static inline void _lcfs_reset_errno_(int *saved_errno)
{
Expand Down

0 comments on commit 03ac5fc

Please sign in to comment.