Naming the parameter of dummy_sa_handler
authorMahesh Bodapati <bmahi496@linux.ibm.com>
Mon, 13 Feb 2023 17:23:19 +0000 (11:23 -0600)
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
Mon, 13 Feb 2023 17:23:19 +0000 (11:23 -0600)
ISO C does not support omitting parameter names in function definitions
before C2X,the compiler is giving an error with older versions of gcc and
this commit will resolve the test failure "error: parameter name omitted"

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
posix/tst-spawn7.c

index a1c0d9d..fedb09f 100644 (file)
@@ -92,7 +92,7 @@ spawn_signal_test (const char *type, const posix_spawnattr_t *attr)
 }
 
 static void
-dummy_sa_handler (int)
+dummy_sa_handler (int signal)
 {
 }