lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #49124] MDNS should not use snprintf()


From: Daniel Elstner
Subject: [lwip-devel] [bug #49124] MDNS should not use snprintf()
Date: Mon, 19 Sep 2016 02:07:31 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/52.0.2743.116 Chrome/52.0.2743.116 Safari/537.36

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

                 Summary: MDNS should not use snprintf()
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: danielk
            Submitted on: Mon 19 Sep 2016 04:07:28 AM CEST
                Category: DNS
                Severity: 3 - Normal
              Item Group: Compiler Warning
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

The MDNS code makes use of snprintf() without including stdio.h:

src/apps/mdns/mdns.c:508: error: implicit declaration of function 'snprintf'

However, rather than adding the #include, I would prefer if MDNS did not use
snprintf() at all, or at least not directly. Many embedded applications avoid
using the C library's printf() altogether due to code size and stack usage
restrictions, and lwIP should not drag it in.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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