summaryrefslogtreecommitdiffstats
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rw-r--r--kiss/net2kiss.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/kiss/net2kiss.c b/kiss/net2kiss.c
index d9e8ff5..093a191 100644
--- a/kiss/net2kiss.c
+++ b/kiss/net2kiss.c
@@ -252,11 +252,10 @@ static int openpty(int *amaster, int *aslave, char *name,
return -1; /* out of ptys */
} else {
line[5] = 't';
- (void) chown(line, getuid(),
- gr ? gr->gr_gid : -1);
- (void) chmod(line, S_IRUSR|S_IWUSR|S_IWGRP);
+ chown(line, getuid(), gr ? gr->gr_gid : -1);
+ chmod(line, S_IRUSR|S_IWUSR|S_IWGRP);
#if 0
- (void) revoke(line);
+ revoke(line);
#endif
slave = open(line, O_RDWR, 0);
if (slave != -1) {
@@ -265,16 +264,14 @@ static int openpty(int *amaster, int *aslave, char *name,
if (name)
strcpy(name, line);
if (termp)
- (void) tcsetattr(slave,
- TCSAFLUSH,
- termp);
+ tcsetattr(slave, TCSAFLUSH,
+ termp);
if (winp)
- (void) ioctl(slave,
- TIOCSWINSZ,
- (char *)winp);
+ ioctl(slave, TIOCSWINSZ,
+ (char *)winp);
return 0;
}
- (void) close(master);
+ close(master);
line[5] = 'p';
}
}