fix bad inline usage
This commit is contained in:
parent
a04cc6a6e5
commit
1f26441c71
3 changed files with 15 additions and 10 deletions
|
|
@ -75,7 +75,7 @@ fail:
|
|||
* NOTE: login_tty() function. It exists as a learning resource.
|
||||
* REF: https://sourceware.org/git/glibc.git -> ./login/login_tty.c
|
||||
*/
|
||||
inline int setctty(const int fdty) {
|
||||
static inline int setctty(const int fdty) {
|
||||
/* We assume any kernel compiling this defines TIOCSCTTY,
|
||||
* otherwise this implementation won't exactly work... */
|
||||
return (ioctl(fdty, TIOCSCTTY, 0) != -1);
|
||||
|
|
@ -90,7 +90,7 @@ inline int setctty(const int fdty) {
|
|||
* WARNING: available at LICENSES/UC-LICENSE in this repo.
|
||||
* REF: https://sourceware.org/git/glibc.git -> ./login/login_tty.c
|
||||
*/
|
||||
inline void bindpty(const int fdty) {
|
||||
void bindpty(const int fdty) {
|
||||
/* Adjust stdin/stdout/stderr to refer to fd*/
|
||||
BIND(fdty, STDIN_FILENO);
|
||||
BIND(fdty, STDOUT_FILENO);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue