Definition at line 2229 of file dis_old.c.
References dll_get_next(), find_client(), Memory::free(), Memory::malloc(), MAX_NAME, serv::name, reqp_ent::reqp, cli_ent::requestp_head, and req_ent::service_ptr.
Referenced by dis_get_error_services().
2238 static int curr_allocated_size = 0;
2239 static char *service_info_buffer;
2262 if(!curr_allocated_size)
2264 service_info_buffer = (
char *)
malloc(max_size);
2265 curr_allocated_size = max_size;
2267 else if (max_size > curr_allocated_size)
2269 free(service_info_buffer);
2270 service_info_buffer = (
char *)
malloc(max_size);
2271 curr_allocated_size = max_size;
2273 service_info_buffer[0] =
'\0';
2274 buff_ptr = service_info_buffer;
2281 strcat(buff_ptr, servp->
name);
2282 strcat(buff_ptr,
"\n");
2283 buff_ptr += strlen(buff_ptr);
2299 return(service_info_buffer);
REQUEST_PTR * requestp_head
CLIENT * find_client(int conn_id)
struct serv * service_ptr
DLL * dll_get_next(DLL *head, DLL *item)