Skip to content

Commit

Permalink
Removed a unneeded variable, and fixed a grammar error.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.bramp.net:8080/svn/PhD/Work/userspace/threadnetperf@2722 e02701c3-087c-644a-a2a3-551e05f81084
  • Loading branch information
bramp committed Jul 6, 2010
1 parent 36547c3 commit fd519e8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server_thread.c
Expand Up @@ -197,7 +197,7 @@ void *server_thread(void *data) {
int nfds = 0;
#endif

int page_size, num_pages;
int page_size;
#ifdef MF_FLIPPAGE
int flippage = 1;
#endif
Expand Down Expand Up @@ -321,12 +321,10 @@ void *server_thread(void *data) {

// Setup the buffer
page_size = getpagesize();
num_pages = roundup(settings.message_size, page_size);
recv_size = roundup(settings.message_size, page_size);
if( settings.verbose )
printf("vallocing of buffer of %d bytes\n", num_pages);
buf = valloc( num_pages );

recv_size = num_pages;
printf("vallocing buffer of %d bytes\n", recv_size);
buf = valloc( recv_size );

if ( buf == NULL ) {
fprintf(stderr, "%s:%d malloc() error (%d) %s\n", __FILE__, __LINE__, ERRNO, strerror(ERRNO) );
Expand Down

0 comments on commit fd519e8

Please sign in to comment.