Explorar o código

[libcpu/arm/cortex-r4]rt_hw_interrupt_install函数name参数增加const限定

liruncong %!s(int64=6) %!d(string=hai) anos
pai
achega
8ce36092c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libcpu/arm/cortex-r4/interrupt.c

+ 1 - 1
libcpu/arm/cortex-r4/interrupt.c

@@ -86,7 +86,7 @@ void rt_hw_interrupt_umask(int vector)
  * @return the old handler
  * @return the old handler
  */
  */
 rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
 rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
-									void *param, char *name)
+									void *param, const char *name)
 {
 {
 	rt_isr_handler_t old_handler = RT_NULL;
 	rt_isr_handler_t old_handler = RT_NULL;