Skip to content

Commit

Permalink
make things 80 cols
Browse files Browse the repository at this point in the history
  • Loading branch information
phunehehe committed Feb 20, 2011
1 parent f8c9666 commit dc3d850
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ int main(void) {

for (servinfo = res; servinfo != NULL; servinfo = servinfo->ai_next) {

listener = socket(servinfo->ai_family, servinfo->ai_socktype, servinfo->ai_protocol);
listener = socket(servinfo->ai_family,
servinfo->ai_socktype,
servinfo->ai_protocol);

if (listener != -1) {

// lose the pesky "address already in use" error message
setsockopt(listener, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof yes);

if (bind(listener, servinfo->ai_addr, servinfo->ai_addrlen) != -1) {
Expand Down

0 comments on commit dc3d850

Please sign in to comment.