1. OpenBSD ntohl/htons/etc.. compile warnings
Hi,
Trying to compile this one program I wrote, on OpenBSD 2.2
but i'm getting warnings in the internet address manipulation routines.
bash-2.01$ make
gcc -m486 -O2 -Wall -pedantic -o server server.c
server.c: In function `get_rwho':
server.c:4535: warning: ANSI C forbids braced-groups within expressions
line 4535 is:
raddr.sin_port = htons(port);
port is declared as int port
raddr is declared as struct sockaddr_in raddr;
what's wrong with this??
without -Wall -pedantic it compiles fine..of course :)
Thanx,
-Tony
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
Anthony J. Biacco Network Administrator/Engineer
"The best way to predict the future, is to invent it."
http://cygnus.ncohafmuta.com http://www.intergrafix.net
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
2. ksoftirqd causing severe network performance problems
3. getservbyname(), htons() broken in linux/68k ?
4. Anyone with Versasoft dBMan experience?
6. File space allocation/deallocation under Unix (BSD4.x)
8. multithreaded driver wanted
10. build error 1.3.70 -- undefined htons
11. htonl/htons etc.
12. socket(AF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)) broken?
13. socket(,,protocol): when htons?