mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
Fix a couple of stylistic issues
Reviewed by: imp (mentor), ru Approved by: imp (mentor)
This commit is contained in:
parent
0db25406cc
commit
263a3a25b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123734
|
@ -259,7 +259,7 @@ main(int argc, char *argv[])
|
|||
static int
|
||||
sppd_ttys_open(char const *tty, int *amaster, int *aslave)
|
||||
{
|
||||
char pty[PATH_MAX], *slash = NULL;
|
||||
char pty[PATH_MAX], *slash;
|
||||
struct group *gr = NULL;
|
||||
gid_t ttygid;
|
||||
struct termios tio;
|
||||
|
@ -277,7 +277,7 @@ sppd_ttys_open(char const *tty, int *amaster, int *aslave)
|
|||
|
||||
strlcpy(pty, tty, sizeof(pty));
|
||||
slash = strrchr(pty, '/');
|
||||
if (slash == NULL || slash[1] == 0) {
|
||||
if (slash == NULL || slash[1] == '\0') {
|
||||
syslog(LOG_ERR, "Invalid slave tty name (%s)", tty);
|
||||
return (-1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue