buglwIP - A Lightweight TCP/IP stack - Bugs: bug #42636, strtol needs stdlib.h

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42636: strtol needs stdlib.h

Submitter:  Sergio R. Caprile <scaprile>
Submitted:  Fri 27 Jun 2014 04:15:27 PM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Compiler Warning Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Tue 02 Sep 2014 06:24:56 PM UTC, comment #1: 

Yup, just found (& fixed) that myself today by using gcc 4 :-)

That's what you get from developing code with M$VS...

Simon Goldschmidt <goldsimon>
Group administrator
Fri 27 Jun 2014 04:15:27 PM UTC, original submission:  

gcc does not complain, but Keil on ARM does, and afaik strtol() belongs to stdlib, so...

´´
--- a/apps/smtp/smtp.c
+++ b/apps/smtp/smtp.c
@@ -34,6 +34,7 @@
 #include "lwip/dns.h"

 #include <string.h>
+#include <stdlib.h>

 /** This is simple SMTP client for raw API.
  * It is a minimal implementation of SMTP as specified in RFC 5321.
´´

Sergio R. Caprile <scaprile>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by scaprile (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-02 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code