X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=tr%2Ftr_tid.c;h=6cd0eb5d4d2a18a8d9bfdfaeccd056f44eec1643;hp=0c69d55572aa1524afa68960c5f2f19cbc77d418;hb=605ee6f071ad51755ba07b4e1a712814bbf4f780;hpb=1127905b70bcb8e1e779e798b76b995789059ff0 diff --git a/tr/tr_tid.c b/tr/tr_tid.c index 0c69d55..6cd0eb5 100644 --- a/tr/tr_tid.c +++ b/tr/tr_tid.c @@ -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 = (int)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;