Cleaning some typos
This commit is contained in:
parent
f0743ec795
commit
10827abb56
|
@ -77,7 +77,6 @@ struct {
|
|||
//
|
||||
// Scheduler
|
||||
//
|
||||
|
||||
struct {
|
||||
Space_t *globalDrawingSpace;
|
||||
IntArray_t *transitionsTree;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include "../include/base.h"
|
||||
#endif
|
||||
|
||||
void *loadServer(void*);
|
||||
void *launchScheduler(void*);
|
||||
|
||||
struct {
|
||||
const char *name;
|
||||
|
@ -33,5 +33,5 @@ struct {
|
|||
|
||||
Command_t cmdList[] =
|
||||
{
|
||||
{"launch scheduler", loadServer, "Launches a scheduler instance"},
|
||||
{"launch scheduler", launchScheduler, "Launches a scheduler instance"},
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
void *loadServer(void *args)
|
||||
void *launchScheduler(void *args)
|
||||
{
|
||||
Scheduler_t *scheduler0;
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ static inline int bindSocket(int newSocket)
|
|||
static void *serverMain(void *server)
|
||||
{
|
||||
Server_t *args;
|
||||
int socketDescriptor, effectiveSocket, clientLen;
|
||||
int socketDescriptor, effectiveSocket, clientRequestLength;
|
||||
struct sockaddr_in client;
|
||||
char clientRequest[255]= {0};
|
||||
char serverAnswer[255] = {0};
|
||||
|
@ -108,10 +108,10 @@ static void *serverMain(void *server)
|
|||
//Accept and incoming connection
|
||||
while(!args->pleaseStop) {
|
||||
printLog("Waiting for incoming connections...\n");
|
||||
clientLen = sizeof(struct sockaddr_in);
|
||||
clientRequestLength = sizeof(struct sockaddr_in);
|
||||
|
||||
//accept connection from an incoming client
|
||||
effectiveSocket = accept(socketDescriptor,(struct sockaddr *)&client,(socklen_t*)&clientLen);
|
||||
effectiveSocket = accept(socketDescriptor,(struct sockaddr *)&client,(socklen_t*)&clientRequestLength);
|
||||
|
||||
if (effectiveSocket < 0) {
|
||||
printLog("Acceptation failed\n");
|
||||
|
|
Loading…
Reference in New Issue