Skip to content

Commit

Permalink
bee-dep: fix some macros
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Dec 1, 2011
1 parent bdbba59 commit 8b2f8f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/beedep_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "beedep_tree.h"

#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define ABS(a) (((a) < 0) ? (-a) : (a))
#define ABS(a) (((a) < 0) ? (-(a)) : (a))

struct tree *tree_new(void)
{
Expand Down
2 changes: 1 addition & 1 deletion src/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#define IS_FILE(a) ((a)[0] == '/')
#define IS_DIR(a) (!strcmp((a)->type, DIR))
#define IS_WHITESPACE(a) (a == ' ' || a == '\t' || a == '\n' || a == '\r')
#define IS_WHITESPACE(a) ((a) == ' ' || (a) == '\t' || (a) == '\n' || (a) == '\r')
#define IS_PKG(a) (!strcmp((a)->type, PACKAGE))

#include "hash.h"
Expand Down

0 comments on commit 8b2f8f9

Please sign in to comment.