1. OpenBSD ntohl/htons/etc.. compile warnings


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 :)


Anthony J. Biacco                           Network Administrator/Engineer

          "The best way to predict the future, is to invent it."          

2. ksoftirqd causing severe network performance problems

3. getservbyname(), htons() broken in linux/68k ?

4. Anyone with Versasoft dBMan experience?

5. question about htons()

6. File space allocation/deallocation under Unix (BSD4.x)

7. SCO OS5 htons problem

8. multithreaded driver wanted

9. where is htons/htonl?

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?