diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-11 10:59:47 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-11 10:59:47 -0800 |
commit | 67a4917b07031b387beafaedce413b4207214059 (patch) | |
tree | 0b14aebd79b746f7f5d943be9829cd359fcb49c5 /lib/leak-checker.c | |
parent | 193ec5109dedb23058dfa734545313b5b3ba10c8 (diff) |
Rename UNUSED macro to OVS_UNUSED to avoid naming conflict.
Requested by Jean Tourrilhes <jt@hpl.hp.com>.
Diffstat (limited to 'lib/leak-checker.c')
-rw-r--r-- | lib/leak-checker.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/leak-checker.c b/lib/leak-checker.c index 8d256bc8..4ab55e59 100644 --- a/lib/leak-checker.c +++ b/lib/leak-checker.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,19 +24,19 @@ #ifndef HAVE_MALLOC_HOOKS void -leak_checker_start(const char *file_name UNUSED) +leak_checker_start(const char *file_name OVS_UNUSED) { VLOG_WARN("not enabling leak checker because the libc in use does not " "have the required hooks"); } void -leak_checker_set_limit(off_t max_size UNUSED) +leak_checker_set_limit(off_t max_size OVS_UNUSED) { } void -leak_checker_claim(const void *p UNUSED) +leak_checker_claim(const void *p OVS_UNUSED) { } @@ -180,7 +180,7 @@ reset_hooks(void) } static void * -hook_malloc(size_t size, const void *caller UNUSED) +hook_malloc(size_t size, const void *caller OVS_UNUSED) { void *p; @@ -209,7 +209,7 @@ leak_checker_claim(const void *p) } static void -hook_free(void *p, const void *caller UNUSED) +hook_free(void *p, const void *caller OVS_UNUSED) { if (!p) { return; @@ -225,7 +225,7 @@ hook_free(void *p, const void *caller UNUSED) } static void * -hook_realloc(void *p, size_t size, const void *caller UNUSED) +hook_realloc(void *p, size_t size, const void *caller OVS_UNUSED) { void *q; |