Skip to content

Commit

Permalink
Fix indentation in PancakeSelect.c
Browse files Browse the repository at this point in the history
  • Loading branch information
pp3345 committed Aug 2, 2015
1 parent 9dd1f15 commit ef1e2de
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Select/PancakeSelect.c
Expand Up @@ -28,16 +28,16 @@ static PancakeSocket *currentSocket = NULL;


PancakeModule PancakeSelect = { PancakeModule PancakeSelect = {
"Select", "Select",
PancakeSelectInitialize, PancakeSelectInitialize,
NULL, NULL,
NULL, NULL,
0 0
}; };


PancakeServerArchitecture PancakeSelectServer = { PancakeServerArchitecture PancakeSelectServer = {
StaticString("Select"), StaticString("Select"),


PancakeSelectWait, PancakeSelectWait,


PancakeSelectAddReadSocket, PancakeSelectAddReadSocket,
PancakeSelectAddWriteSocket, PancakeSelectAddWriteSocket,
Expand All @@ -51,11 +51,11 @@ PancakeServerArchitecture PancakeSelectServer = {
PancakeSelectSetWriteSocket, PancakeSelectSetWriteSocket,
PancakeSelectSetSocket, PancakeSelectSetSocket,


PancakeSelectOnSocketClose, PancakeSelectOnSocketClose,


NULL, NULL,


NULL NULL
}; };


STATIC UByte PancakeSelectInitialize() { STATIC UByte PancakeSelectInitialize() {
Expand Down Expand Up @@ -230,12 +230,12 @@ STATIC void PancakeSelectWait() {
continue; continue;


if(FD_ISSET(fd, &readFDSet)) { if(FD_ISSET(fd, &readFDSet)) {
UByte buf[1]; UByte buf[1];


numEvents--; numEvents--;


if(currentSocket->onRead == NULL || recv(fd, &buf, 1, MSG_PEEK | MSG_DONTWAIT) == 0) { if(currentSocket->onRead == NULL || recv(fd, &buf, 1, MSG_PEEK | MSG_DONTWAIT) == 0) {
PancakeAssert(currentSocket->onRemoteHangup != NULL); PancakeAssert(currentSocket->onRemoteHangup != NULL);
currentSocket->onRemoteHangup(currentSocket); currentSocket->onRemoteHangup(currentSocket);
PancakeCheckHeap(); PancakeCheckHeap();


Expand Down

0 comments on commit ef1e2de

Please sign in to comment.