#include <sys/wait.h>
#include <stdio.h>
-#ifndef PORT
#define PORT "65002"
-#endif
struct data {
int state;
int main(void)
{
struct data *d = malloc(sizeof(*d));
- struct addrinfo *addrinfo;
+ struct addrinfo *addrinfo = NULL;
struct io_listener *l;
int fd, status;
exit(0);
}
freeaddrinfo(addrinfo);
- ok1(io_loop() == d);
+ ok1(io_loop(NULL, NULL) == d);
ok1(d->state == 2);
ok1(memcmp(d->buf, "hellothere", sizeof(d->buf)) == 0);
free(d);