Skip to content

Commit b327b8d

Browse files
committed
[cleanup] remove offensive terminology from ProcessSpawner
1 parent 8cc6ded commit b327b8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Host/POSIX/ProcessSpawner.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ namespace Host {
3434

3535
static bool open_terminal(int fds[2]) {
3636
#if defined(OS_FREEBSD) || defined(OS_DARWIN)
37-
char *slave;
37+
char *device_name;
3838
#else
39-
char slave[PATH_MAX];
39+
char device_name[PATH_MAX];
4040
#endif
4141

4242
fds[0] = ::posix_openpt(O_RDWR | O_NOCTTY);
@@ -50,13 +50,13 @@ static bool open_terminal(int fds[2]) {
5050
goto error_fd0;
5151

5252
#if defined(OS_FREEBSD) || defined(OS_DARWIN)
53-
slave = ptsname(fds[0]);
53+
device_name = ptsname(fds[0]);
5454
#else
55-
if (::ptsname_r(fds[0], slave, sizeof(slave)) != 0)
55+
if (::ptsname_r(fds[0], device_name, sizeof(device_name)) != 0)
5656
goto error_fd0;
5757
#endif
5858

59-
fds[1] = ::open(slave, O_RDWR);
59+
fds[1] = ::open(device_name, O_RDWR);
6060
if (fds[1] == -1)
6161
goto error_fd0;
6262

0 commit comments

Comments
 (0)