From e4187b2fc8e48b0548023ffa136723f85f8086a4 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Wed, 5 May 2010 12:35:39 +0000 Subject: [PATCH] Made pointers constant and thereby reduced the code size slightly. --- core/cfs/cfs-coffee.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/cfs/cfs-coffee.c b/core/cfs/cfs-coffee.c index 454211714..4b823b432 100644 --- a/core/cfs/cfs-coffee.c +++ b/core/cfs/cfs-coffee.c @@ -189,10 +189,10 @@ static struct protected_mem_t { coffee_page_t next_free; char gc_wait; } protected_mem; -static struct file *coffee_files = protected_mem.coffee_files; -static struct file_desc *coffee_fd_set = protected_mem.coffee_fd_set; -static coffee_page_t *next_free = &protected_mem.next_free; -static char *gc_wait = &protected_mem.gc_wait; +static struct file * const coffee_files = protected_mem.coffee_files; +static struct file_desc * const coffee_fd_set = protected_mem.coffee_fd_set; +static coffee_page_t * const next_free = &protected_mem.next_free; +static char * const gc_wait = &protected_mem.gc_wait; /*---------------------------------------------------------------------------*/ static void