This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001170] Correct Endianness of DHCP "Seconds Elapsed" field


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001170

--- Comment #3 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2011-03-10 05:38:22 GMT ---
(In reply to comment #2)
> 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

Agreed. Thank you for your point. I will re-submit new patch. Or may be 
Kelvin has own one?

Sergei

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]