summaryrefslogtreecommitdiffhomepage
path: root/auto/shmem
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-12-15 08:17:39 -0800
committerKonstantin Pavlov <thresh@nginx.com>2022-12-15 08:17:39 -0800
commite22669f2728814aba82da14702d18bfa9685311e (patch)
treec9c9471dab359e8e33fca24c5d4f035ab5b278db /auto/shmem
parenta1d28488f9df8e28ee25ea438c275b96b9afe5b6 (diff)
parent4409a10ff0bd6bb45fb88716bd383cd867958a8a (diff)
downloadunit-e22669f2728814aba82da14702d18bfa9685311e.tar.gz
unit-e22669f2728814aba82da14702d18bfa9685311e.tar.bz2
Merged with the default branch.
Diffstat (limited to 'auto/shmem')
-rw-r--r--auto/shmem8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto/shmem b/auto/shmem
index bfe0ee4a..c434a58f 100644
--- a/auto/shmem
+++ b/auto/shmem
@@ -18,7 +18,7 @@ nxt_feature_test="#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
- int main() {
+ int main(void) {
int ret;
static char name[] = \"/unit.configure\";
@@ -62,7 +62,7 @@ if [ $nxt_found = no ]; then
#include <sys/stat.h>
#include <sys/types.h>
- int main() {
+ int main(void) {
static char name[] = \"/tmp/unit.configure\";
shm_unlink(name);
@@ -94,7 +94,7 @@ nxt_feature_test="#include <sys/mman.h>
#include <fcntl.h>
#include <sys/stat.h>
- int main() {
+ int main(void) {
int fd = shm_open(SHM_ANON, O_RDWR, S_IRUSR | S_IWUSR);
if (fd == -1)
return 1;
@@ -119,7 +119,7 @@ nxt_feature_test="#include <linux/memfd.h>
#include <unistd.h>
#include <sys/syscall.h>
- int main() {
+ int main(void) {
static char name[] = \"/unit.configure\";
int fd = syscall(SYS_memfd_create, name, MFD_CLOEXEC);