Skip to contentSkip to conversation

osm_console_io.c: Handle another write-strings issue

PATCH New Hal Rosenstock 1 participant 1 message Apr 11, 2013 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_console_io.c: Handle another write-strings issue

From: Ira Weiny <[email protected]>

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"

---

opensm/osm_console_io.c +2 -2
index 167562c..18bd5ef 100644
@@ -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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html