diff options
| author | Bernard Xiong <[email protected]> | 2013-06-24 17:06:09 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-06-24 17:06:09 +0800 |
| commit | 79392bb0827bfb0323320f8f8ae346c06b88df7b (patch) | |
| tree | 579db3e4d98e70e98ca9466c433948d3f0953470 /src/mempool.c | |
| parent | b23dd15990c913898b88d235c08e8630952d00cd (diff) | |
Embedded GPLv2 license.
Diffstat (limited to 'src/mempool.c')
| -rw-r--r-- | src/mempool.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/mempool.c b/src/mempool.c index 7c3a510325..c9bcd7a45c 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -3,9 +3,19 @@ * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rt-thread.org/license/LICENSE + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Change Logs: * Date Author Notes @@ -284,7 +294,7 @@ rt_err_t rt_mp_delete(rt_mp_t mp) #if defined(RT_USING_MODULE) && defined(RT_USING_SLAB) /* the mp object belongs to an application module */ - if (mp->parent.flag & RT_OBJECT_FLAG_MODULE) + if (mp->parent.flag & RT_OBJECT_FLAG_MODULE) rt_module_free(mp->parent.module_id, mp->start_address); else #endif |
