2390 char* tempHeader = 0;
2392 tempHeader = (
char*)
malloc(HEADER_SIZE);
2393 if (tempHeader == 0) {
2396 printf(
"no memory available!\n");
2400 "No more memory available, unable to continue serving - exiting.",
2406 memcpy(tempHeader, &(pHeader->id), HEADER_SIZE_ID);
2407 memcpy(tempHeader + HEADER_OFFSET_ID, &(pHeader->errorCode), HEADER_SIZE_ERROR_CODE);
2408 memcpy(tempHeader + HEADER_OFFSET_ERROR_CODE, &(pHeader->flags), HEADER_SIZE_FLAGS);
2409 memcpy(tempHeader + HEADER_OFFSET_FLAGS, &(pHeader->checksum), HEADER_SIZE_CHECKSUM);
void createLogMessage(unsigned int type, char *description, char *origin)