diff options
author | Maksim Yevmenkin <emax@FreeBSD.org> | 2003-12-22 22:50:21 +0000 |
---|---|---|
committer | Maksim Yevmenkin <emax@FreeBSD.org> | 2003-12-22 22:50:21 +0000 |
commit | 263a3a25b1b30cfc5a373f86b6d229f49ee9a36b (patch) | |
tree | facfb09b24c654b112431bb580fdaf0371ded6fe | |
parent | 0db25406cc9590daa15b061eefbf61ce0a791124 (diff) | |
download | src-263a3a25b1b30cfc5a373f86b6d229f49ee9a36b.tar.gz src-263a3a25b1b30cfc5a373f86b6d229f49ee9a36b.zip |
Fix a couple of stylistic issues
Reviewed by: imp (mentor), ru
Approved by: imp (mentor)
Notes
Notes:
svn path=/head/; revision=123734
-rw-r--r-- | usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c index 15709ede8504..f525ccb36f47 100644 --- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c +++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c @@ -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); } |