lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5764] api_lib.c cleanup: after patch #5687


From: Dmitry Potapov
Subject: [lwip-devel] [patch #5764] api_lib.c cleanup: after patch #5687
Date: Wed, 28 Feb 2007 17:49:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070216 Firefox/1.5.0.10

URL:
  <http://savannah.nongnu.org/patch/?5764>

                 Summary: api_lib.c cleanup: after patch #5687
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: dpotapov
            Submitted on: Wednesday 02/28/2007 at 17:49
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Declaring variables beginning with underscore is not good (the C standard
reserves these names for vendor extentions)
Also, it is better to avoid extra pointer, which is not really necessary. So
basic idea of this patch is:

-  struct api_msg _msg;
-  struct api_msg *msg = &_msg;
+  struct api_msg msg;




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wednesday 02/28/2007 at 17:49  Name: MEMP_API_MSG_cleanup.patch  Size:
6kB   By: dpotapov

<http://savannah.nongnu.org/patch/download.php?file_id=12062>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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