diff --git a/sessions.h b/sessions.h index 63908cf..1916cfa 100644 --- a/sessions.h +++ b/sessions.h @@ -83,6 +83,9 @@ void setsession(int pid, int ts_ttl, int ruid) { return; #ifdef TIOCSETVERAUTH + (void)pid; + (void)ruid; + int ttyfd = open("/dev/tty", O_RDWR); ioctl(ttyfd, TIOCSETVERAUTH, &ts_ttl); close(ttyfd); @@ -122,6 +125,9 @@ int getsession(int pid, int ts_ttl, int ruid) { return -1; #ifdef TIOCCHKVERAUTH + (void)pid; + (void)ruid; + int ttyfd = open("/dev/tty", O_RDWR); int ret = ioctl(ttyfd, TIOCCHKVERAUTH); close(ttyfd);