From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25802 invoked by alias); 9 Mar 2011 23:59:47 -0000 Received: (qmail 25792 invoked by uid 22791); 9 Mar 2011 23:59:47 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from nm14-vm0.bullet.mail.bf1.yahoo.com (HELO nm14-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.164) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 09 Mar 2011 23:59:41 +0000 Received: from [98.139.212.146] by nm14.bullet.mail.bf1.yahoo.com with NNFMP; 09 Mar 2011 23:59:39 -0000 Received: from [98.139.212.225] by tm3.bullet.mail.bf1.yahoo.com with NNFMP; 09 Mar 2011 23:59:39 -0000 Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP; 09 Mar 2011 23:59:39 -0000 Received: (qmail 62331 invoked from network); 9 Mar 2011 23:59:38 -0000 Received: from [172.16.4.241] (jay@207.212.80.162 with plain) by smtp112.biz.mail.mud.yahoo.com with SMTP; 09 Mar 2011 15:59:38 -0800 PST X-Yahoo-SMTP: _6UaILCswBBhOX_6rRH7WS5y1ZaLCg-- Message-ID: <4D781468.2000102@systech.com> Date: Wed, 09 Mar 2011 23:59:00 -0000 From: Jay Foster User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: bugzilla-daemon@bugs.ecos.sourceware.org CC: ecos-patches@ecos.sourceware.org Subject: Re: [Bug 1001170] Correct Endianness of DHCP "Seconds Elapsed" field References: <20110309182624.0CB7D2F78008@mail.ecoscentric.com> In-Reply-To: <20110309182624.0CB7D2F78008@mail.ecoscentric.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00010.txt.bz2 It also appears in bootp_support.c: show_bootp(). Depending on the implementation of htons(), cyg_current_time() may end up getting called twice. Might be better to put the result of cyg_current_time() / 100 in a temporary variable and perform htons() on that. Jay On 3/9/2011 10:26 AM, bugzilla-daemon@bugs.ecos.sourceware.org wrote: > Please do not reply to this email. Use the web interface provided at: > http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001170 > > --- Comment #1 from Sergei Gavrikov 2011-03-09 18:26:22 GMT --- > Created an attachment (id=1167) > --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1167) > Fixed byte order for bp_secs > > diffstat /tmp/dhcp_prot.diff > ChangeLog | 5 +++++ > src/dhcp_prot.c | 2 +- > 2 files changed, 6 insertions(+), 1 deletion(-) > > Grep shows 1 actual place. Hope that's it. >