lwp-warning-cleanup-and-afsconfig-20010612
authorNathan Neulinger <nneul@umr.edu>
Tue, 12 Jun 2001 20:46:41 +0000 (20:46 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 12 Jun 2001 20:46:41 +0000 (20:46 +0000)
get rid of warnings and afsconfigize lwp

src/lwp/Makefile
src/lwp/lwp.h
src/lwp/threadname.c

index 37144e8..f3a2ed1 100644 (file)
@@ -121,6 +121,7 @@ rw.o: rw.c
 #
 #      Installation
 #
+all: system
 system:        install
 
 kinstall ukinstall webinstall:
index 0b3de23..fcb096f 100644 (file)
@@ -360,6 +360,14 @@ extern int LWP_WaitProcess(void *event);
 extern int LWP_INTERNALSIGNAL(void *event, int yield);
 extern int LWP_QWait(void);
 extern int LWP_QSignal(PROCESS pid);
+#else
+extern int LWP_CurrentProcess();
+extern int LWP_INTERNALSIGNAL();
+extern int LWP_InitializeProcessSupport();
+extern int LWP_CreateProcess();
+extern int LWP_DestroyProcess();
+extern int LWP_WaitProcess();
+extern PROCESS LWP_ThreadId();
 #endif
 
 /* max time we are allowed to spend in a select call on NT */
index b56161f..e888836 100644 (file)
@@ -84,14 +84,16 @@ int registerthread(id, name)
     for (i = 0; i < nThreads; i++) {
        if (ThreadId[i] == id) {
            strncpy(&ThreadName[i][0], name, MAXTHREADNAMELENGTH);
-           return;
+           return 0;
        }
     }
-    if (nThreads == MAX_THREADS) return;
+    if (nThreads == MAX_THREADS) return 0;
     ThreadId[nThreads] = id;
     strncpy(&ThreadName[nThreads][0], name, MAXTHREADNAMELENGTH);
     ThreadName[nThreads][MAXTHREADNAMELENGTH -1] =0;
     nThreads++;
+
+    return 0;
 }
 
 int swapthreadname(id, new, old)