Allow caller to set port number for tidc_open_connection(). Install
[trust_router.git] / tid / example / tidc_main.c
index 480dde5..751a504 100644 (file)
@@ -118,7 +118,7 @@ int main (int argc,
   }
 
   /* Set-up TID connection */
-  if (-1 == (conn = tidc_open_connection(tidc, server, &gssctx))) {
+  if (-1 == (conn = tidc_open_connection(tidc, server, TID_PORT, &gssctx))) {
     /* Handle error */
     printf("Error in tidc_open_connection.\n");
     return 1;