From 0901dedefe16afa3f7222723b3fec7a22d9df675 Mon Sep 17 00:00:00 2001 From: Jiangli Zhou Date: Tue, 27 Feb 2024 01:34:19 +0000 Subject: [PATCH] 8326433: Make file-local functions static in src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c Reviewed-by: cjplummer, sspitsyn --- src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c b/src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c index be868ba0687..a694bba93c4 100644 --- a/src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c +++ b/src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c @@ -62,7 +62,7 @@ static char *skipNonWhitespace(char *p) { // input/output/error file descriptors will not be closed // by this function. This function returns 0 on failure // and 1 on success. -int +static int closeDescriptors(void) { DIR *dp; @@ -115,7 +115,7 @@ closeDescriptors(void) // Does necessary housekeeping of a forked child process // (like closing copied file descriptors) before // execing the child process. This function never returns. -void +static void forkedChildProcess(const char *file, char *const argv[]) { /* Close all file descriptors that have been copied over