From 8e55f537ed8a5dd38e36f850c2195fa4625309e5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 30 May 1999 12:37:27 +0000 Subject: [PATCH] Update. 1999-05-30 Ulrich Drepper * inet/netinet/in.h: Mark ntoh* and hton* as constant functions. --- ChangeLog | 4 ++++ inet/netinet/in.h | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83ee634..4a5f136 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +1999-05-30 Ulrich Drepper + + * inet/netinet/in.h: Mark ntoh* and hton* as constant functions. + 1999-05-30 Andreas Jaeger * manual/stdio.texi: Fix some typos. diff --git a/inet/netinet/in.h b/inet/netinet/in.h index ee49fd0..fc8f169 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -230,10 +230,10 @@ struct ipv6_mreq this was a short-sighted decision since on different systems the types may have different representations but the values are always the same. */ -extern uint32_t ntohl __P ((uint32_t __netlong)); -extern uint16_t ntohs __P ((uint16_t __netshort)); -extern uint32_t htonl __P ((uint32_t __hostlong)); -extern uint16_t htons __P ((uint16_t __hostshort)); +extern uint32_t ntohl __P ((uint32_t __netlong)) __attribute__ ((__const__)); +extern uint16_t ntohs __P ((uint16_t __netshort)) __attribute__ ((__const__)); +extern uint32_t htonl __P ((uint32_t __hostlong)) __attribute__ ((__const__)); +extern uint16_t htons __P ((uint16_t __hostshort)) __attribute__ ((__const__)); #include -- 2.7.4