FACT++  1.0
int getIssueTimeout ( IssueStruct *  issueParam)

Definition at line 2697 of file feeserver.c.

References createLogMessage(), Memory::malloc(), and sprintf().

Referenced by command_handler().

2697  {
2698  char msg[50];
2699 
2700  (*issueParam).result = (char*) malloc(sizeof(unsigned long));
2701  if ((*issueParam).result == 0) {
2702  (*issueParam).size = 0;
2703  return FEE_INSUFFICIENT_MEMORY;
2704  }
2705 
2706  // copy current timeout for issue to ACK result
2707  memcpy((*issueParam).result, &issueTimeout, sizeof(unsigned long));
2708  (*issueParam).size = sizeof(unsigned long);
2709 # ifdef __DEBUG
2710  printf("issue timeout is %lu\n", issueTimeout);
2711  fflush(stdout);
2712 # endif
2713  msg[sprintf(msg, "Issue timeout is %lu.", issueTimeout)] = 0;
2714  createLogMessage(MSG_DEBUG, msg, 0);
2715 
2716  return FEE_OK;
2717 }
void * malloc()
Definition: EventBuilder.cc:99
void createLogMessage(unsigned int type, char *description, char *origin)
Definition: feeserver.c:1530
static unsigned long issueTimeout
Definition: feeserver.c:203
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: