From 5c25bf16b439a6e0b5420cbe8e1b799da3126e3d Mon Sep 17 00:00:00 2001 From: tkarrass Date: Sat, 2 Nov 2013 17:20:34 +0100 Subject: [PATCH] headers angepisst --- msg.h | 2 +- net.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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;