Changeset 1e8b4b49 for benchmark


Ignore:
Timestamp:
Jan 19, 2022, 6:54:03 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
46bbcaf
Parents:
175f9f4
Message:

Added work around for CFA bug with implicit conversion to unions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/main.cfa

    r175f9f4 r1e8b4b49  
    1 #define __USE_GNU
     1#define _GNU_SOURCE
    22
    33#include <errno.h>
     
    146146        int waited = 0;
    147147        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 );
    149153                if(ret < 0) {
    150154                        if(errno == EADDRINUSE) {
Note: See TracChangeset for help on using the changeset viewer.