[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inet_aton declaration broken, in_addr_t vs. int [50 character or so desc
From: |
ma |
Subject: |
inet_aton declaration broken, in_addr_t vs. int [50 character or so descriptive subject here (for reference)] |
Date: |
Sat, 22 Feb 2003 18:43:26 +0100 (CET) |
>Submitter-Id: net
>Originator: Matthias Andree
>Organization:
Matthias Andree
>
>Confidential: no
>Synopsis: inet_aton declared to return in_addr_t rather than int
>Severity: non-critical
>Priority: low
>Category: libc
>Class: sw-bug
>Release: libc-2.2.5
>Environment:
Host type: i486-suse-linux-gnu
System: Linux merlin 2.4.19-4GB #1 Wed Nov 27 00:56:53 UTC 2002 i686 unknown
Architecture: i686
Addons: db db2 linuxthreads noversion
Build CFLAGS: -O2 -mcpu=i686 -march=i686 -g
Build CC: gcc
Compiler version: 3.2
Kernel headers: 2.4.19
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio
>Description:
The inet_aton declaration in line #74 of arpa/inet.h reads:
/* Convert Internet host address from numbers-and-dots notation in CP
* into binary data and store the result in the structure INP. */
extern in_addr_t inet_aton (__const char *__cp, struct in_addr *__inp) __THROW;
However, this function returns "int" on any other system I have access
to, and according to the documentation.
>How-To-Repeat:
Compare libc.info against arpa/inet.h.
>Fix:
--- arpa/inet.h.orig 2003-02-22 18:41:07.000000000 +0100
+++ arpa/inet.h 2003-02-22 18:41:15.000000000 +0100
@@ -71,7 +71,7 @@
#ifdef __USE_MISC
/* Convert Internet host address from numbers-and-dots notation in CP
into binary data and store the result in the structure INP. */
-extern in_addr_t inet_aton (__const char *__cp, struct in_addr *__inp) __THROW;
+extern int inet_aton (__const char *__cp, struct in_addr *__inp) __THROW;
/* Format a network number NET into presentation format and place result
in buffer starting at BUF with length of LEN bytes. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- inet_aton declaration broken, in_addr_t vs. int [50 character or so descriptive subject here (for reference)],
ma <=