diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-12 10:53:13 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-12 10:53:13 +0100 |
commit | 4f8e2c0a96acb56ae99c0cf2ac48da00cd2f7bb7 (patch) | |
tree | 66ec88b5a7fcbddc4f3c17100aa1531f1dae0877 | |
parent | 4af143a85531a5635d441a201b259fbd45a23660 (diff) | |
download | econ-4f8e2c0a96acb56ae99c0cf2ac48da00cd2f7bb7.tar.gz econ-4f8e2c0a96acb56ae99c0cf2ac48da00cd2f7bb7.tar.bz2 econ-4f8e2c0a96acb56ae99c0cf2ac48da00cd2f7bb7.zip |
econfind: Remove debug code
-rw-r--r-- | econfind.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -51,7 +51,6 @@ main(int argc, char *argv[]) int cfd, sfd; struct econ_packet pkt; struct in_addr in; - const char *ip; if (argc < 2) exit(EXIT_FAILURE); @@ -61,9 +60,7 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); in.s_addr = sock_get_ipv4_addr(cfd); - ip = inet_ntoa(in); - fprintf(stderr, "own ip: %s\n", inet_ntoa(in)); - sfd = bind_socket(SOCK_DGRAM, ip, STR(ECON_PORTNUMBER)); + sfd = bind_socket(SOCK_DGRAM, inet_ntoa(in), STR(ECON_PORTNUMBER)); epkt_init(&pkt, E_CMD_EASYSEARCH); if (epkt_send(cfd, &pkt) < 0) |