1 From 804a9b4f57107fa2d0ed1ae0becda5bebaffe6e1 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Wed, 19 Sep 2018 13:20:12 -0700
4 Subject: [PATCH xserver] shm: reindent shm_tmpfile to follow our standards.
6 Signed-off-by: Eric Anholt <eric@anholt.net>
8 Xext/shm.c | 40 ++++++++++++++++++++--------------------
9 1 file changed, 20 insertions(+), 20 deletions(-)
11 diff --git a/Xext/shm.c b/Xext/shm.c
12 index 589ed0b4d..ed43b9202 100644
15 @@ -1195,34 +1195,34 @@ static int
20 - char template[] = SHMDIR "/shmfd-XXXXXX";
22 + char template[] = SHMDIR "/shmfd-XXXXXX";
24 - fd = open(SHMDIR, O_TMPFILE|O_RDWR|O_CLOEXEC|O_EXCL, 0666);
26 - DebugF ("Using O_TMPFILE\n");
29 - ErrorF ("Not using O_TMPFILE\n");
30 + fd = open(SHMDIR, O_TMPFILE|O_RDWR|O_CLOEXEC|O_EXCL, 0666);
32 + DebugF ("Using O_TMPFILE\n");
35 + ErrorF ("Not using O_TMPFILE\n");
38 - fd = mkostemp(template, O_CLOEXEC);
39 + fd = mkostemp(template, O_CLOEXEC);
41 - fd = mkstemp(template);
42 + fd = mkstemp(template);
51 - int flags = fcntl(fd, F_GETFD);
53 - flags |= FD_CLOEXEC;
54 - (void) fcntl(fd, F_SETFD, &flags);
56 + int flags = fcntl(fd, F_GETFD);
58 + flags |= FD_CLOEXEC;
59 + (void) fcntl(fd, F_SETFD, &flags);