Skip to content

Commit

Permalink
Changed type of addr_len in bang-scan.c, created stub files tabs.c, t…
Browse files Browse the repository at this point in the history
…abs.h for module tabs.

git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@151 69d76c3e-0761-0410-948c-9895a8bb34fc
  • Loading branch information
asjacob2 committed Mar 12, 2009
1 parent 86c3495 commit 3b4c092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/main.c
Expand Up @@ -45,6 +45,7 @@
#include"preferences.h"
#include"statusbar.h"
#include"server-menu.h"
#include"tabs.h"
#include<locale.h>
#include<stdio.h>
#include<stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions src/base/bang-scan.c
Expand Up @@ -92,7 +92,7 @@ static int listen_new_peers() {
int numbytes;
struct sockaddr_storage new_peer_addr;
char buf[SCAN_MSG_LEN];
size_t addr_len;
socklen_t addr_len;
char s[INET6_ADDRSTRLEN];

memset(&hints, 0, sizeof hints);
Expand Down Expand Up @@ -131,7 +131,7 @@ static int listen_new_peers() {
#ifdef BDEBUG_1
printf("Listening for new peers...\n");
#endif
addr_len = sizeof new_peer_addr;
addr_len = sizeof(new_peer_addr);
if ((numbytes = recvfrom(sockfd, buf, SCAN_MSG_LEN, 0,
(struct sockaddr *)&new_peer_addr, &addr_len)) == -1) {
perror("recvfrom");
Expand Down

0 comments on commit 3b4c092

Please sign in to comment.