Wasn't calling function to get socket name.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 14 Feb 2003 08:31:02 +0000 (08:31 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 14 Feb 2003 08:31:02 +0000 (08:31 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@288 cb58f699-b61c-0410-a6fe-9272a202ed29

shar/shar.c

index 0d2d32d..562ec47 100644 (file)
@@ -183,7 +183,7 @@ main (int argc, char *argv[])
     return -3;
 
   /* Bind to the proper port */
-  if (shib_sock_bind (sock, shib_target_sockname) != 0)
+  if (shib_sock_bind (sock, shib_target_sockname()) != 0)
     return -4;
 
   /* Initialize the SHAR Utilitites */
@@ -195,7 +195,7 @@ main (int argc, char *argv[])
   /* Finalize the SHAR, close all clients */
   shar_utils_fini();
 
-  shib_sock_close(sock, shib_target_sockname);
+  shib_sock_close(sock, shib_target_sockname());
   fprintf (stderr, "shar_svc_run returned.\n");
   return 0;
 }