Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] box/lua/init: Declare modsrc as constant
@ 2019-04-25 22:35 Cyrill Gorcunov
  0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2019-04-25 22:35 UTC (permalink / raw)
  To: tml; +Cc: Cyrill Gorcunov

They are actually pregenerated constant strings,
declare them so.
---
Not a big deal, just for clarification.

 src/box/lua/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/lua/init.c b/src/box/lua/init.c
index 3ff4f3227..fa157d97d 100644
--- a/src/box/lua/init.c
+++ b/src/box/lua/init.c
@@ -60,7 +60,7 @@
 #include "box/lua/tuple.h"
 #include "box/lua/execute.h"
 
-extern char session_lua[],
+extern const char session_lua[],
 	tuple_lua[],
 	schema_lua[],
 	load_cfg_lua[],
-- 
2.20.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-25 22:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-25 22:35 [tarantool-patches] [PATCH] box/lua/init: Declare modsrc as constant Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox