forked from soccera/rdo
void unused parameters in ioctl session route
This commit is contained in:
parent
44d44e86d1
commit
ca8a3ee603
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue