From patchwork Sat Mar 29 11:53:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 27389 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D828320553 for ; Sat, 29 Mar 2014 11:53:16 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf22164022oag.6 for ; Sat, 29 Mar 2014 04:53:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=wEljY+IjMrgjElISLKxx/8ZPmnks5AR0xm6qVJ2+9FQ=; b=FXoQkmNkfAf7ZYtvH3781jEfZ+Utr9v+ksfTUnL9UpY/c4CEr39xZXIgXEitRwXZXe kMGziFjnZL84Jpg30w6eTg2l3jRYZf7VwRfzZ5Ry3g49CIeJ6kWdaAIavp9fkhLldk7L I0PFu2No1VnaVMIz0t9Dv7eFGh8nzBoup7EDFtqQKMSlKwE2C8P6Lec0qhNKymyul+/m EXiBvs4inbMPr6Vqv7wuNY92rjKHCyUlmSEeXe/FXMgRiH1K7IprjO4vuec5eLVK6PXX h1L7Fqe0BNfqWmDpYRZsusBY7F0/q2VxxrRtaAo4piWDi/uYnw6fGIdrGxcgPbSan8dy 9h2w== X-Gm-Message-State: ALoCoQk9XZrpSdiCQPKFa4FSGlZ82mB5M6FY4XXORzwBgRkxOPNCEsgelfI52dxGUKKWn9z4lD9i X-Received: by 10.182.109.200 with SMTP id hu8mr5519824obb.20.1396093995546; Sat, 29 Mar 2014 04:53:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: lng-odp@linaro.org Received: by 10.140.16.73 with SMTP id 67ls1873867qga.18.gmail; Sat, 29 Mar 2014 04:53:15 -0700 (PDT) X-Received: by 10.140.86.166 with SMTP id p35mr1043918qgd.81.1396093995287; Sat, 29 Mar 2014 04:53:15 -0700 (PDT) Received: from mail-qg0-f52.google.com (mail-qg0-f52.google.com [209.85.192.52]) by mx.google.com with ESMTPS id w73si3812546qge.9.2014.03.29.04.53.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 29 Mar 2014 04:53:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.52 is neither permitted nor denied by best guess record for domain of mike.holmes@linaro.org) client-ip=209.85.192.52; Received: by mail-qg0-f52.google.com with SMTP id q107so1980963qgd.25 for ; Sat, 29 Mar 2014 04:53:15 -0700 (PDT) X-Received: by 10.140.101.244 with SMTP id u107mr173431qge.107.1396093995128; Sat, 29 Mar 2014 04:53:15 -0700 (PDT) Received: from fedora1.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id w35sm11016395qgw.4.2014.03.29.04.53.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Mar 2014 04:53:14 -0700 (PDT) From: Mike Holmes To: lng-odp@linaro.org Cc: Mike Holmes Subject: [lng-odp] [PATCH] timer.c: assignment of unsigned to signed Date: Sat, 29 Mar 2014 07:53:04 -0400 Message-Id: <1396093984-18346-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.192.52 is neither permitted nor denied by best guess record for domain of mike.holmes@linaro.org) smtp.mail=mike.holmes@linaro.org Precedence: list Mailing-list: list lng-odp@linaro.org; contact lng-odp+owners@linaro.org List-ID: X-Google-Group-Id: 474323889996 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The passed in argument or returned value was defined as uint32_t odp_timer_t, however the the local variable id was defined as an int. Signed-off-by: Mike Holmes --- platform/linux-generic/source/odp_timer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c index 4bcc479..824ec0e 100644 --- a/platform/linux-generic/source/odp_timer.c +++ b/platform/linux-generic/source/odp_timer.c @@ -178,7 +178,7 @@ odp_timer_t odp_timer_create(const char *name, odp_buffer_pool_t pool, uint64_t resolution, uint64_t min_tmo, uint64_t max_tmo) { - int id; + uint32_t id; (void) name; (void) resolution; (void) min_tmo; (void) max_tmo; if (odp_timer.num_timers >= NUM_TIMERS) @@ -257,7 +257,7 @@ odp_timer_tmo_t odp_timer_absolute_tmo(odp_timer_t timer, uint64_t tmo_tick, uint64_t odp_timer_tick_to_ns(odp_timer_t timer, uint64_t ticks) { - int id; + uint32_t id; id = timer - 1; @@ -267,7 +267,7 @@ uint64_t odp_timer_tick_to_ns(odp_timer_t timer, uint64_t ticks) uint64_t odp_timer_ns_to_tick(odp_timer_t timer, uint64_t ns) { - int id; + uint32_t id; id = timer - 1; @@ -277,7 +277,7 @@ uint64_t odp_timer_ns_to_tick(odp_timer_t timer, uint64_t ns) uint64_t odp_timer_resolution(odp_timer_t timer) { - int id; + uint32_t id; id = timer - 1; @@ -287,7 +287,7 @@ uint64_t odp_timer_resolution(odp_timer_t timer) uint64_t odp_timer_maximum_tmo(odp_timer_t timer) { - int id; + uint32_t id; id = timer - 1; @@ -297,7 +297,7 @@ uint64_t odp_timer_maximum_tmo(odp_timer_t timer) uint64_t odp_timer_current_tick(odp_timer_t timer) { - int id; + uint32_t id; id = timer - 1;