diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-05-30 12:37:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-05-30 12:37:27 +0000 |
commit | 8e55f537ed8a5dd38e36f850c2195fa4625309e5 (patch) | |
tree | 135b40928409cd47a3672231eeacea819cb33108 /inet/netinet/in.h | |
parent | 0ea554bf8158e381c067062b011f12368c036b8f (diff) | |
download | glibc-8e55f537ed8a5dd38e36f850c2195fa4625309e5.zip glibc-8e55f537ed8a5dd38e36f850c2195fa4625309e5.tar.gz glibc-8e55f537ed8a5dd38e36f850c2195fa4625309e5.tar.bz2 |
Update.
1999-05-30 Ulrich Drepper <drepper@cygnus.com>
* inet/netinet/in.h: Mark ntoh* and hton* as constant functions.
Diffstat (limited to 'inet/netinet/in.h')
-rw-r--r-- | inet/netinet/in.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <endian.h> |