Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1716914

[PATCH] Staging: greybus: Make string array const

From Eames Trinh <eamestrinh@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] Staging: greybus: Make string array const
Date 2017-08-22 00:20 +0200
Message-ID <uh3d7-1GC-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Added const to string array.

Signed-off-by: Eames Trinh <eamestrinh@gmail.com>
---
 drivers/staging/greybus/audio_manager_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/audio_manager_module.c b/drivers/staging/greybus/audio_manager_module.c
index adc16977452d..73a3e2decb3a 100644
--- a/drivers/staging/greybus/audio_manager_module.c
+++ b/drivers/staging/greybus/audio_manager_module.c
@@ -159,7 +159,7 @@ static void send_add_uevent(struct gb_audio_manager_module *module)
 	char ip_devices_string[64];
 	char op_devices_string[64];
 
-	char *envp[] = {
+	const char *envp[] = {
 		name_string,
 		vid_string,
 		pid_string,
-- 
2.11.0

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] Staging: greybus: Make string array const Eames Trinh <eamestrinh@gmail.com> - 2017-08-22 00:20 +0200

csiph-web