- Timestamp:
- Jan 19, 2022, 6:54:03 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 46bbcaf
- Parents:
- 175f9f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
r175f9f4 r1e8b4b49 1 #define _ _USE_GNU1 #define _GNU_SOURCE 2 2 3 3 #include <errno.h> … … 146 146 int waited = 0; 147 147 for() { 148 ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) ); 148 int sockfd = server_fd; 149 __CONST_SOCKADDR_ARG addr; 150 addr.__sockaddr__ = (struct sockaddr *)&address; 151 socklen_t addrlen = sizeof(address); 152 ret = bind( sockfd, addr, addrlen ); 149 153 if(ret < 0) { 150 154 if(errno == EADDRINUSE) {
Note: See TracChangeset
for help on using the changeset viewer.