headers angepisst
This commit is contained in:
parent
3d834b54cf
commit
5c25bf16b4
2
msg.h
2
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;
|
||||
|
|
3
net.c
3
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user