Skip to content

Commit

Permalink
Fix do{}while(0) in macros not to have trailing semi-colon
Browse files Browse the repository at this point in the history
  • Loading branch information
giannitedesco committed Oct 15, 2010
1 parent e1320fe commit 20e59a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/buddy.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if PAGE_POISON
#define P_POISON(ptr, len) memset(ptr, PAGE_POISON_PATTERN, len)
#else
#define P_POISON(ptr, len) do { } while(0);
#define P_POISON(ptr, len) do { } while(0)
#endif

/* pageframe array */
Expand Down
2 changes: 1 addition & 1 deletion kernel/memchunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#if OBJCACHE_POISON
#define O_POISON(ptr, len) memset(ptr, OBJCACHE_POISON_PATTERN, len)
#else
#define O_POISON(ptr, len) do { } while(0);
#define O_POISON(ptr, len) do { } while(0)
#endif

static struct _memchunk mc;
Expand Down

0 comments on commit 20e59a7

Please sign in to comment.