diff --git a/msg.h b/msg.h index cfffa4b..fdfe0ff 100644 --- a/msg.h +++ b/msg.h @@ -10,7 +10,7 @@ struct message { long timestamp; int width; // varies int height; // normally 80 - char **image; // dimension is width x height + char *image; // dimension is width x height }; struct Buffer { int size; diff --git a/net.c b/net.c index 981722f..a6358c4 100644 --- a/net.c +++ b/net.c @@ -42,9 +42,8 @@ int run_server(const struct prog_info *pinfo) { fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(ret)); return 1; } -// ... - for(p = servinfo; p != NULL; p = p->ai_next) { + for(p = servinfo; p != NULL; p = p->ai_next) { if ((sockfd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) { perror("talker: socket"); continue;