Skip to content

Commit

Permalink
update it
Browse files Browse the repository at this point in the history
  • Loading branch information
fookwood committed Aug 28, 2012
1 parent 9e4e33b commit 5fbbfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int server_start( void ){
if( fd == -1 )
err_exit("Can't get socket");

setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &setsockoptflag, setsockoptflag );
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &setsockoptflag, sizeof(setsockoptflag));

servaddr.sin_family = AF_INET;
servaddr.sin_port = htons(server_port);
Expand Down

0 comments on commit 5fbbfeb

Please sign in to comment.