From patchwork Mon Oct 12 17:17:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 53178 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9CHPeqx012393 for ; Mon, 12 Oct 2009 17:25:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754985AbZJLRRv (ORCPT ); Mon, 12 Oct 2009 13:17:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753640AbZJLRRv (ORCPT ); Mon, 12 Oct 2009 13:17:51 -0400 Received: from mga01.intel.com ([192.55.52.88]:13616 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752841AbZJLRRv (ORCPT ); Mon, 12 Oct 2009 13:17:51 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 12 Oct 2009 10:11:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,547,1249282800"; d="scan'208";a="502362952" Received: from scsmith-mobl1.amr.corp.intel.com (HELO scsmithMOBL1) ([10.7.151.219]) by fmsmga002.fm.intel.com with ESMTP; 12 Oct 2009 10:08:56 -0700 From: "Stan C. Smith" To: "'Sasha Khapyorsky'" Cc: , "'linux-rdma'" Subject: [PATCH] osmtest - clarify assignment operation Date: Mon, 12 Oct 2009 10:17:12 -0700 Message-ID: <90026838F7CE447FBF3318901EC934FA@amr.corp.intel.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpLX9ZFucnWjZB/StehBToK2LFvrA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c index 4bb9f82..6bfd7a6 100644 --- a/opensm/osmtest/main.c +++ b/opensm/osmtest/main.c @@ -433,7 +433,7 @@ int main(int argc, char *argv[]) /* * Specifies the max LID to search for during exploration. */ - max_lid = atoi(optarg); + max_lid = (uint16_t) atoi(optarg); printf("\tMAX-LID %u\n", max_lid); break;