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

Submitted by:  Sergio R. Caprile <scaprile>
Submitted on:  Fri 27 Jun 2014 04:15:27 PM UTC  
 
Category: ContribSeverity: 3 - Normal
Item Group: Compiler WarningStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned 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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 02 Sep 2014 06:24:56 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1