Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: tml <tarantool-patches@freelists.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Subject: [tarantool-patches] [PATCH] box/lua/init: Declare modsrc as constant
Date: Fri, 26 Apr 2019 01:35:45 +0300	[thread overview]
Message-ID: <20190425223545.2479-1-gorcunov@gmail.com> (raw)

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

                 reply	other threads:[~2019-04-25 22:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190425223545.2479-1-gorcunov@gmail.com \
    --to=gorcunov@gmail.com \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH] box/lua/init: Declare modsrc as constant' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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