public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH opensm] osm_console_io.c: Handle another write-strings issue
@ 2013-04-11 14:19 Hal Rosenstock
  0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2013-04-11 14:19 UTC (permalink / raw)
  To: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org); +Cc: Ira Weiny

From: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

hosts_ctl declaration is:
int hosts_ctl(daemon, client_name, client_addr, client_user);
char *daemon;
char *client_name;
char *client_addr;
char *client_user;

This should have been part of previous commit 664494a8157684f2f277fb457556a7c27feae0af 
"Fix issues causing const warnings for strings"

Signed-off-by: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/opensm/osm_console_io.c b/opensm/osm_console_io.c
index 167562c..18bd5ef 100644
--- a/opensm/osm_console_io.c
+++ b/opensm/osm_console_io.c
@@ -164,8 +164,8 @@ int is_authorized(osm_console_t * p_oct)
 {
 	/* allowed to use the console? */
 	p_oct->authorized = !is_remote(p_oct->client_type) ||
-	    hosts_ctl(OSM_DAEMON_NAME, p_oct->client_hn, p_oct->client_ip,
-		      "STRING_UNKNOWN");
+	    hosts_ctl((char *)OSM_DAEMON_NAME, p_oct->client_hn, p_oct->client_ip,
+		      (char *)"STRING_UNKNOWN");
 	return p_oct->authorized;
 }
 #endif
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

only message in thread, other threads:[~2013-04-11 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 14:19 [PATCH opensm] osm_console_io.c: Handle another write-strings issue Hal Rosenstock

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