lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9516] sntp: use const for servername


From: Joel Cunningham
Subject: [lwip-devel] [patch #9516] sntp: use const for servername
Date: Wed, 13 Dec 2017 12:38:03 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0

URL:
  <http://savannah.nongnu.org/patch/?9516>

                 Summary: sntp: use const for servername
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jcunningham
            Submitted on: Wed 13 Dec 2017 05:38:02 PM UTC
                Category: apps
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

This adds const to the sntp servername get/set API and internal storage

SNTP's usage of this name is read only and SNTP only passes it to
dns_gethostbyname()

This was found by compiling with GCC -Wwrite-strings which makes the literal
SNTP_SERVER_ADDRESS a const string. This then produced warnings with
sntp_init()'s
call to sntp_setservername()



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 13 Dec 2017 05:38:02 PM UTC  Name:
0001-sntp-use-const-for-servername.patch  Size: 2KiB   By: jcunningham

<http://savannah.nongnu.org/patch/download.php?file_id=42638>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9516>

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




reply via email to

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