1
0
Fork 0
forked from soccera/rdo

void unused parameters in ioctl session route

This commit is contained in:
sw1tchbl4d3 2023-02-04 10:40:14 +01:00
parent 44d44e86d1
commit ca8a3ee603

View file

@ -83,6 +83,9 @@ void setsession(int pid, int ts_ttl, int ruid) {
return; return;
#ifdef TIOCSETVERAUTH #ifdef TIOCSETVERAUTH
(void)pid;
(void)ruid;
int ttyfd = open("/dev/tty", O_RDWR); int ttyfd = open("/dev/tty", O_RDWR);
ioctl(ttyfd, TIOCSETVERAUTH, &ts_ttl); ioctl(ttyfd, TIOCSETVERAUTH, &ts_ttl);
close(ttyfd); close(ttyfd);
@ -122,6 +125,9 @@ int getsession(int pid, int ts_ttl, int ruid) {
return -1; return -1;
#ifdef TIOCCHKVERAUTH #ifdef TIOCCHKVERAUTH
(void)pid;
(void)ruid;
int ttyfd = open("/dev/tty", O_RDWR); int ttyfd = open("/dev/tty", O_RDWR);
int ret = ioctl(ttyfd, TIOCCHKVERAUTH); int ret = ioctl(ttyfd, TIOCCHKVERAUTH);
close(ttyfd); close(ttyfd);