[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] A few issues
From: |
Bill Auerbach |
Subject: |
RE: [lwip-devel] A few issues |
Date: |
Mon, 18 May 2009 17:42:29 -0400 |
Strictly speaking, ret_type function_name() is not Standard C, but a C++
shortcut that some compilers take to mean void. Although K&R C defined this
syntax, it meant no argument information, not void (which didn't exist in K&R).
ret_type function_name (void) is correct.
Bill
>-----Original Message-----
>From: address@hidden
>[mailto:address@hidden On
>Behalf Of Simon Kallweit
>Sent: Monday, May 18, 2009 4:20 PM
>To: lwip-devel
>Subject: Re: [lwip-devel] A few issues
>
>address@hidden wrote:
>>> I'll have a look into that. Maybe the correct includes are missing.
>> Should be fixed. Would you mind trying, Simon?
>
>Still got the warning. Adding a void parameter helped:
>
>struct netif *ip_current_netif(void);
>const struct ip_hdr *ip_current_header(void);
>
>Simon
>
>
>_______________________________________________
>lwip-devel mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/lwip-devel
RE: [lwip-devel] A few issues, Bill Auerbach, 2009/05/18