lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #5067] Fix err_to_errno() macro for sockets API


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #5067] Fix err_to_errno() macro for sockets API
Date: Tue, 06 Mar 2007 08:18:21 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2

Follow-up Comment #2, patch #5067 (project lwip):

Isn't this one already applied? I have another patch, though:

Currently, signed and unsigned are compared after the &&:
  (-(err) >= 0 && -(err) < ERR_TO_ERRNO_TABLE_SIZE ? \

since we know err is negative, casting -err to u8_t can do no harm and gets
rid of the warning:
  (-(err) >= 0 && (u8_t)(-(err)) < ERR_TO_ERRNO_TABLE_SIZE ? \

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5067>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]