PoorMan Server : fix for several style violations (blanks between operators,
blanks after commas, 80 chars/line) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34712 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -275,7 +275,8 @@ int32 PoorManServer::_Worker(void* data)
|
||||
|
||||
PRINT(("A worker thread starts to work.\n"));
|
||||
|
||||
setsockopt(hc->conn_fd, SOL_SOCKET, SO_RCVTIMEO, &kTimeVal, sizeof(struct timeval));
|
||||
setsockopt(hc->conn_fd, SOL_SOCKET, SO_RCVTIMEO, &kTimeVal,
|
||||
sizeof(struct timeval));
|
||||
retval = recv(
|
||||
hc->conn_fd,
|
||||
&(hc->read_buf[hc->read_idx]),
|
||||
@@ -290,7 +291,8 @@ int32 PoorManServer::_Worker(void* data)
|
||||
case GR_GOT_REQUEST:
|
||||
break;
|
||||
case GR_BAD_REQUEST:
|
||||
httpd_send_err(hc,400,httpd_err400title,"",httpd_err400form,"");
|
||||
httpd_send_err(hc, 400,
|
||||
httpd_err400title, "", httpd_err400form, "");
|
||||
httpd_write_response(hc);//fall through
|
||||
case GR_NO_REQUEST: //fall through
|
||||
default: //won't happen
|
||||
@@ -365,8 +367,8 @@ status_t PoorManServer::_HandleGet(httpd_conn* hc)
|
||||
length = hc->sb.st_size;
|
||||
|
||||
static_cast<PoorManApplication*>(be_app)->GetPoorManWindow()->SetHits(
|
||||
static_cast<PoorManApplication*>(be_app)->GetPoorManWindow()->GetHits()
|
||||
+ 1);
|
||||
static_cast<PoorManApplication*>(be_app)->
|
||||
GetPoorManWindow()->GetHits() + 1);
|
||||
|
||||
log.SetTo("Sending file: ");
|
||||
if (pthread_rwlock_rdlock(&fWebDirLock) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user