aix42-pthread-self-return-needs-cast-20010514
[openafs.git] / src / rx / rx.c
index ae6e505..43fa166 100644 (file)
@@ -360,6 +360,10 @@ int rx_Init(u_int port)
     char *htable, *ptable;
     int tmp_status;
 
+#if defined(AFS_DJGPP_ENV) && !defined(DEBUG)
+    __djgpp_set_quiet_socket(1);
+#endif
+
     SPLVAR;
 
     INIT_PTHREAD_LOCKS
@@ -662,7 +666,7 @@ void rx_StartServer(donateMe)
         char name[32];
 #ifdef AFS_PTHREAD_ENV
         pid_t pid;
-        pid = pthread_self();
+        pid = (pid_t) pthread_self();
 #else /* AFS_PTHREAD_ENV */
         PROCESS pid;
         code = LWP_CurrentProcess(&pid);