[Top][All Lists]

[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: Gecko/20070216 Firefox/


                 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



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



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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