From caf82f9f945095161c57830fe2816c1444cbb63d Mon Sep 17 00:00:00 2001 From: emax Date: Mon, 22 Dec 2003 22:50:21 +0000 Subject: Fix a couple of stylistic issues Reviewed by: imp (mentor), ru Approved by: imp (mentor) --- usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/bluetooth') 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); } -- cgit v1.1