1
0
Эх сурвалжийг харах

change ops to const data.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@545 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 жил өмнө
parent
commit
eb2cc84a6d

+ 1 - 1
finsh/finsh_ops.c

@@ -553,7 +553,7 @@ void OP_call()
 	return ;
 }
 
-op_func op_table[] =
+const op_func op_table[] =
 {
 	/* 00 */ OP_no_op,
 	/* 01 */ OP_add_byte,

+ 1 - 1
finsh/finsh_ops.h

@@ -115,6 +115,6 @@
 #define FINSH_OP_HALT			0xFF
 
 typedef void (*op_func)();
-extern op_func op_table[];
+extern const op_func op_table[];
 
 #endif