lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #45020] Too few arguments to function calls in the Uni


From: Edgar Bonet
Subject: [lwip-devel] [bug #45020] Too few arguments to function calls in the Unix minimal project
Date: Tue, 05 May 2015 10:55:39 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0

URL:
  <http://savannah.nongnu.org/bugs/?45020>

                 Summary: Too few arguments to function calls in the Unix
minimal project
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: ebonet
            Submitted on: mar. 05 mai 2015 10:55:37 GMT
                Category: Contrib
                Severity: 3 - Normal
              Item Group: Compiler Warning
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

Compiling the minimal project from the Unix port fails with the
following error message:

main.c: In function ‘main’:
main.c:204:3: error: too few arguments to function ‘snmp_set_syscontact’
   snmp_set_syscontact(syscontact_str,&syscontact_len);
   ^
In file included from ../../../../../lwip/src/include/lwip/snmp_msg.h:39:0,
                 from main.c:50:
../../../../../lwip/src/include/lwip/snmp.h:116:6: note: declared here
 void snmp_set_syscontact(u8_t *ocstr, u8_t *ocstrlen, u8_t bufsize);
      ^

The same error (substantially) appears on the next line, where
snmp_set_syslocation() is called with two arguments, while it is
declared as

    void snmp_set_syslocation(u8_t *ocstr, u8_t *ocstrlen, u8_t bufsize);

According to the definitions of both functions (in
lwip/src/core/snmp/mib2.c), the missing third argument should be the
length of the buffer given in the first argument. The attached patch
adds this missing argument.

PS: I categorized this as "Compiler Warning" because there is no
"Compiler Error" category.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: mar. 05 mai 2015 10:55:37 GMT  Name:
0002-Call-snmp_set_syscontact-and-snmp_set_syslocation-wi.patch  Size: 1 ko  
By: ebonet

<http://savannah.nongnu.org/bugs/download.php?file_id=33918>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45020>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

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