fix bad inline usage

This commit is contained in:
Emile Clark-Boman 2025-09-11 17:37:01 +10:00
parent a04cc6a6e5
commit 1f26441c71
3 changed files with 15 additions and 10 deletions

View file

@ -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);