Apply the const attribute to ats_pagesize()
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8ae414a2 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8ae414a2 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8ae414a2 Branch: refs/heads/3.3.x Commit: 8ae414a285f747d09a02ff6e485c75a28d43c12d Parents: c18a8d9 Author: James Peach <[email protected]> Authored: Thu May 30 13:36:24 2013 -0700 Committer: James Peach <[email protected]> Committed: Thu May 30 13:36:32 2013 -0700 ---------------------------------------------------------------------- lib/ts/ink_memory.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8ae414a2/lib/ts/ink_memory.h ---------------------------------------------------------------------- diff --git a/lib/ts/ink_memory.h b/lib/ts/ink_memory.h index f62a7eb..a6258f8 100644 --- a/lib/ts/ink_memory.h +++ b/lib/ts/ink_memory.h @@ -88,7 +88,7 @@ extern "C" { int ats_madvise(caddr_t addr, size_t len, int flags); int ats_mlock(caddr_t addr, size_t len); - static inline size_t ats_pagesize(void) + static inline size_t __attribute__((const)) ats_pagesize(void) { static size_t page_size;
