Lines 1148-1154
static inline void pty_line_name(struct
Link Here
|
1148 |
int i = index + driver->name_base; |
1148 |
int i = index + driver->name_base; |
1149 |
/* ->name is initialized to "ttyp", but "tty" is expected */ |
1149 |
/* ->name is initialized to "ttyp", but "tty" is expected */ |
1150 |
sprintf(p, "%s%c%x", |
1150 |
sprintf(p, "%s%c%x", |
1151 |
driver->subtype == PTY_TYPE_SLAVE ? "tty" : driver->name, |
1151 |
driver->subtype == PTY_TYPE_SLAVE ? "pty" : driver->name, |
1152 |
ptychar[i >> 4 & 0xf], i & 0xf); |
1152 |
ptychar[i >> 4 & 0xf], i & 0xf); |
1153 |
} |
1153 |
} |
1154 |
|
1154 |
|