lwp: Declare LWP_TerminateProcessSupport

When building rw in src/lwp, some compilers throw a warning that
LWP_TerminateProcessSupport is not declared.  Here is an example:

          /opt/IBM/openxlC/17.1.0/bin/ibm-clang    -g -O    -I/home/build/openafs/src/config -I/home/build/openafs/include  -I. -I.       -o rw.o -c rw.c
rw.c:242:5: warning: implicit declaration of function 'LWP_TerminateProcessSupport' is invalid in C99 [-Wimplicit-function-declaration]
    LWP_TerminateProcessSupport();
    ^
1 warning generated.

Declare LWP_TerminateProcessSupport in lwp.h.  Also update the function
signatures in src/lwp/lwp_nt.c and src/lwp/test/testlwp.c to match.

Change-Id: I86c016d7e6000dc341d8cf314173fc55f0a77331
Reviewed-on: https://gerrit.openafs.org/15979
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Ben Huntsman 2024-12-07 10:44:11 -08:00 committed by Michael Meffie
parent 00275ea88e
commit 755fad2f26
3 changed files with 4 additions and 2 deletions

View File

@ -259,6 +259,7 @@ 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);
extern int LWP_TerminateProcessSupport(void);
#else
extern int LWP_CurrentProcess(PROCESS * pid);
extern int LWP_INTERNALSIGNAL(void *event, int yield);
@ -271,6 +272,7 @@ extern int LWP_WaitProcess(void *event);
extern PROCESS LWP_ThreadId(void);
extern int LWP_QWait(void);
extern int LWP_QSignal(PROCESS pid);
extern int LWP_TerminateProcessSupport(void);
#endif
#ifdef AFS_SUN5_ENV

View File

@ -389,7 +389,7 @@ int LWP_INTERNALSIGNAL(void *event, int yield)
return LWP_EINIT;
}
int LWP_TerminateProcessSupport() /* terminate all LWP support */
int LWP_TerminateProcessSupport(void) /* terminate all LWP support */
{
int i;

View File

@ -323,7 +323,7 @@ int LWP_INTERNALSIGNAL(event, yield) /* signal the occurence of an event */
return LWP_EINIT;
}
int LWP_TerminateProcessSupport() /* terminate all LWP support */
int LWP_TerminateProcessSupport(void) /* terminate all LWP support */
{
int pc;
int i;