File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ namespace Host {
3434
3535static 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
You can’t perform that action at this time.
0 commit comments