aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/c/base-socket-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/c/base-socket-server.c b/template/c/base-socket-server.c
index 5e41e40..2ea9416 100644
--- a/template/c/base-socket-server.c
+++ b/template/c/base-socket-server.c
@@ -64,7 +64,7 @@ main(int argc, char* argv[]) {
exit(1);
}
- writer_len = sizeof(writer_addr);
+ writer_len = sizeof(writer_addr);
if ((client_fd = accept(server_fd,(struct sockaddr *)&writer_addr, &writer_len)) < 0) {
socket_perror("reader: accept");
exit(1);