File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ namespace Host {
34
34
35
35
static bool open_terminal (int fds[2 ]) {
36
36
#if defined(OS_FREEBSD) || defined(OS_DARWIN)
37
- char *slave ;
37
+ char *device_name ;
38
38
#else
39
- char slave [PATH_MAX];
39
+ char device_name [PATH_MAX];
40
40
#endif
41
41
42
42
fds[0 ] = ::posix_openpt (O_RDWR | O_NOCTTY);
@@ -50,13 +50,13 @@ static bool open_terminal(int fds[2]) {
50
50
goto error_fd0;
51
51
52
52
#if defined(OS_FREEBSD) || defined(OS_DARWIN)
53
- slave = ptsname (fds[0 ]);
53
+ device_name = ptsname (fds[0 ]);
54
54
#else
55
- if (::ptsname_r (fds[0 ], slave , sizeof (slave )) != 0 )
55
+ if (::ptsname_r (fds[0 ], device_name , sizeof (device_name )) != 0 )
56
56
goto error_fd0;
57
57
#endif
58
58
59
- fds[1 ] = ::open (slave , O_RDWR);
59
+ fds[1 ] = ::open (device_name , O_RDWR);
60
60
if (fds[1 ] == -1 )
61
61
goto error_fd0;
62
62
You can’t perform that action at this time.
0 commit comments