Checkpoint commit: refactoring the request code in TIDS for better reuse
[trust_router.git] / tr / tr_tid.c
index 0c69d55..464ebd4 100644 (file)
@@ -676,7 +676,7 @@ int tr_tids_event_init(struct event_base *base,
   TALLOC_CTX *tmp_ctx=talloc_new(NULL);
   struct tr_tids_event_cookie *cookie=NULL;
   int retval=0;
-  size_t ii=0;
+  int ii=0;
 
   if (tids_ev == NULL) {
     tr_debug("tr_tids_event_init: Null tids_ev.");
@@ -698,14 +698,14 @@ int tr_tids_event_init(struct event_base *base,
   talloc_steal(tids, cookie);
 
   /* get a tids listener */
-  tids_ev->n_sock_fd=tids_get_listener(tids,
-                                       tr_tids_req_handler,
-                                       tr_tids_gss_handler,
-                                       cfg_mgr->active->internal->hostname,
-                                       cfg_mgr->active->internal->tids_port,
-                                       (void *)cookie,
-                                       tids_ev->sock_fd,
-                                       TR_MAX_SOCKETS);
+  tids_ev->n_sock_fd = tids_get_listener(tids,
+                                         tr_tids_req_handler,
+                                         tr_tids_gss_handler,
+                                         cfg_mgr->active->internal->hostname,
+                                         cfg_mgr->active->internal->tids_port,
+                                         (void *)cookie,
+                                         tids_ev->sock_fd,
+                                         TR_MAX_SOCKETS);
   if (tids_ev->n_sock_fd==0) {
     tr_crit("Error opening TID server socket.");
     retval=1;