Bug#187391: libc0.3-dev: weirdness with sockaddr_un
Package: libc0.3-dev
Severity: normal
hi!
the following code seems to be compliant with the Glibc documentation
referred to sockaddr_un, as it provides a char* as the second component
of the struct:
#include <sys/socket.h>
#include <sys/un.h>
main ()
{
sockaddr_un test = { AF_LOCAL, "" };
}
however, when built with g++ (and not with gcc) on GNU/Hurd, it reports
mismatch errors:
test.c: In function `int main()':
test.c:6: invalid conversion from `const char*' to `unsigned char'
which is strange that it expects a char when both the documentation
and <sys/un.h> agree that it should be a char*.
the code in question compiles fine on GNU/Linux.
--
Robert Millan
make: *** No rule to make target `war'. Stop.
Another world is possible - Just say no to genocide
Reply to: