Permalink
Browse files

Fix indentation in PancakeSelect.c

  • Loading branch information...
pp3345 committed Aug 2, 2015
1 parent 9dd1f15 commit ef1e2de733a822d15b97c5acbdf57ec7ceea1e30
Showing with 10 additions and 10 deletions.
  1. +10 −10 Select/PancakeSelect.c
View
@@ -28,16 +28,16 @@ static PancakeSocket *currentSocket = NULL;
PancakeModule PancakeSelect = {
"Select",
PancakeSelectInitialize,
NULL,
NULL,
0
PancakeSelectInitialize,
NULL,
NULL,
0
};
PancakeServerArchitecture PancakeSelectServer = {
StaticString("Select"),
PancakeSelectWait,
PancakeSelectWait,
PancakeSelectAddReadSocket,
PancakeSelectAddWriteSocket,
@@ -51,11 +51,11 @@ PancakeServerArchitecture PancakeSelectServer = {
PancakeSelectSetWriteSocket,
PancakeSelectSetSocket,
PancakeSelectOnSocketClose,
PancakeSelectOnSocketClose,
NULL,
NULL,
NULL
NULL
};
STATIC UByte PancakeSelectInitialize() {
@@ -230,12 +230,12 @@ STATIC void PancakeSelectWait() {
continue;
if(FD_ISSET(fd, &readFDSet)) {
UByte buf[1];
UByte buf[1];
numEvents--;
if(currentSocket->onRead == NULL || recv(fd, &buf, 1, MSG_PEEK | MSG_DONTWAIT) == 0) {
PancakeAssert(currentSocket->onRemoteHangup != NULL);
PancakeAssert(currentSocket->onRemoteHangup != NULL);
currentSocket->onRemoteHangup(currentSocket);
PancakeCheckHeap();

0 comments on commit ef1e2de

Please sign in to comment.