summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-01-08 16:15:43 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-01-08 16:15:43 +0100
commitda5f7b86ef18e767108a9a12798013b0e8289b35 (patch)
tree50e38ead9faea1b5a2818adfad7441811a83aa42
parentb3754bb474e26cc27d6fde6ebc068be30cc64d50 (diff)
downloadudp514-journal-da5f7b86ef18e767108a9a12798013b0e8289b35.tar.gz
udp514-journal-da5f7b86ef18e767108a9a12798013b0e8289b35.tar.zst
remove unused variable
-rw-r--r--udp514-journal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udp514-journal.c b/udp514-journal.c
index ca8b163..6116f0c 100644
--- a/udp514-journal.c
+++ b/udp514-journal.c
@@ -8,7 +8,7 @@
#include "udp514-journal.h"
int main(int argc, char **argv) {
- int s, rc, n;
+ int s, n;
socklen_t len;
struct sockaddr_in cliAddr, servAddr;
char buffer[BUFFER_SIZE];
@@ -25,7 +25,7 @@ int main(int argc, char **argv) {
servAddr.sin_addr.s_addr = htonl(INADDR_ANY);
servAddr.sin_port = htons(LOCAL_SERVER_PORT);
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &y, sizeof(int));
- if ((rc = bind(s, (struct sockaddr *) &servAddr, sizeof(servAddr))) < 0) {
+ if (bind(s, (struct sockaddr *) &servAddr, sizeof(servAddr)) < 0) {
perror("could not bind on port " LOCAL_SERVER_PORT_STR);
return EXIT_FAILURE;
}