Fix a couple of stylistic issues

Reviewed by: imp (mentor), ru
Approved by: imp (mentor)
This commit is contained in:
Maksim Yevmenkin 2003-12-22 22:50:21 +00:00
parent 0db25406cc
commit 263a3a25b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123734

View file

@ -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);
}