From patchwork Thu Apr 11 14:19:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2428881 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1C895DF230 for ; Thu, 11 Apr 2013 14:19:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751633Ab3DKOTd (ORCPT ); Thu, 11 Apr 2013 10:19:33 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:61279 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372Ab3DKOTc (ORCPT ); Thu, 11 Apr 2013 10:19:32 -0400 Received: by mail-wg0-f46.google.com with SMTP id j13so1644740wgh.13 for ; Thu, 11 Apr 2013 07:19:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:content-transfer-encoding:x-gm-message-state; bh=XPT722peW43w2d5ZLwedIdR4XJEzkz59+Bt5946ixp0=; b=BUm5VUjM1tUnENXw2NVij/69baDalyM8YZlWrppm5Ch4obTwQVRrhvQI2fTKt7wwh7 Tt6Tx34vAfgVqVa1FIYDuR5tY2ynUhwYENgqbUKKe6CxriMvde6SwHFEyUwB/TJ9QDkn JVfW8YuNQuAXLUTRfrmW4oEQWdwqD1/dFdwoNfyEc3EA1WeasFjdQrbjOEt13zVcumSe Trck9q7noOODHevt4wTUKga4I6cL02lzcmiqRJyTPBLaPVbWW0aLg4aE0six1cKtxOAz +Y/Qq81sNOeUBEhaxza1eZMexwB4PXUZOxgapbV1S4b6Q7EU+/SCjE21V3XzFQxmqGV8 5fsg== X-Received: by 10.194.103.72 with SMTP id fu8mr11066782wjb.42.1365689971199; Thu, 11 Apr 2013 07:19:31 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id j4sm3403462wiz.10.2013.04.11.07.19.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 11 Apr 2013 07:19:30 -0700 (PDT) Message-ID: <5166C66F.6040508@dev.mellanox.co.il> Date: Thu, 11 Apr 2013 10:19:27 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Ira Weiny Subject: [PATCH opensm] osm_console_io.c: Handle another write-strings issue X-Gm-Message-State: ALoCoQlwYuOanoFK7c4mrJ7QpTcou+DPxKbJWvzuRwHmw20aFh1lyziW+Y/bn+djiF4rVvpFfe2y Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Ira Weiny 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 Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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