summaryrefslogtreecommitdiffstats
path: root/usr.bin/bluetooth
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2003-12-22 22:50:21 +0000
committeremax <emax@FreeBSD.org>2003-12-22 22:50:21 +0000
commitcaf82f9f945095161c57830fe2816c1444cbb63d (patch)
treefacfb09b24c654b112431bb580fdaf0371ded6fe /usr.bin/bluetooth
parent6858d80a88224df0b2248a5a6d6bc18b4ed7b908 (diff)
downloadFreeBSD-src-caf82f9f945095161c57830fe2816c1444cbb63d.zip
FreeBSD-src-caf82f9f945095161c57830fe2816c1444cbb63d.tar.gz
Fix a couple of stylistic issues
Reviewed by: imp (mentor), ru Approved by: imp (mentor)
Diffstat (limited to 'usr.bin/bluetooth')
-rw-r--r--usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c4
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 15709ed..f525ccb 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);
}
OpenPOWER on IntegriCloud