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"));
|
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(
|
retval = recv(
|
||||||
hc->conn_fd,
|
hc->conn_fd,
|
||||||
&(hc->read_buf[hc->read_idx]),
|
&(hc->read_buf[hc->read_idx]),
|
||||||
@@ -290,7 +291,8 @@ int32 PoorManServer::_Worker(void* data)
|
|||||||
case GR_GOT_REQUEST:
|
case GR_GOT_REQUEST:
|
||||||
break;
|
break;
|
||||||
case GR_BAD_REQUEST:
|
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
|
httpd_write_response(hc);//fall through
|
||||||
case GR_NO_REQUEST: //fall through
|
case GR_NO_REQUEST: //fall through
|
||||||
default: //won't happen
|
default: //won't happen
|
||||||
@@ -365,8 +367,8 @@ status_t PoorManServer::_HandleGet(httpd_conn* hc)
|
|||||||
length = hc->sb.st_size;
|
length = hc->sb.st_size;
|
||||||
|
|
||||||
static_cast<PoorManApplication*>(be_app)->GetPoorManWindow()->SetHits(
|
static_cast<PoorManApplication*>(be_app)->GetPoorManWindow()->SetHits(
|
||||||
static_cast<PoorManApplication*>(be_app)->GetPoorManWindow()->GetHits()
|
static_cast<PoorManApplication*>(be_app)->
|
||||||
+ 1);
|
GetPoorManWindow()->GetHits() + 1);
|
||||||
|
|
||||||
log.SetTo("Sending file: ");
|
log.SetTo("Sending file: ");
|
||||||
if (pthread_rwlock_rdlock(&fWebDirLock) == 0) {
|
if (pthread_rwlock_rdlock(&fWebDirLock) == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user