From patchwork Fri Oct 24 19:39:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 3360 Received: (qmail 19662 invoked by alias); 24 Oct 2014 19:40:03 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 19650 invoked by uid 89); 24 Oct 2014 19:40:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Prototypify htonl and htons definitions. Message-Id: <20141024193959.2AE4C2C3AB6@topped-with-meat.com> Date: Fri, 24 Oct 2014 12:39:59 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=EqH1_-ef5k8-vbR0IB0A:9 a=CjuIK1q_8ugA:10 a=J_EZKVlaHtgA:10 a=ZaPp7mowHAoA:10 2014-10-24 Roland McGrath * inet/htons.c (htons): Prototypify. * inet/htonl.c (htonl): Likewise. --- a/inet/htonl.c +++ b/inet/htonl.c @@ -22,8 +22,7 @@ #undef ntohl uint32_t -htonl (x) - uint32_t x; +htonl (uint32_t x) { #if BYTE_ORDER == BIG_ENDIAN return x; --- a/inet/htons.c +++ b/inet/htons.c @@ -21,8 +21,7 @@ #undef ntohs uint16_t -htons (x) - uint16_t x; +htons (uint16_t x) { #if BYTE_ORDER == BIG_ENDIAN return x;