diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-12-29 19:32:16 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-12-29 19:32:16 +0000 |
commit | 95cd931b918a07fcf12e48dce9665f3c90ab4130 (patch) | |
tree | 3f5f495c54e85cf481b2ff2c5e007d2c23f1c0f2 /test/rctest.c | |
parent | 9e6e37723b8d8798ed9ba58734fd3022fdf49dc2 (diff) |
Fix typos
Diffstat (limited to 'test/rctest.c')
-rw-r--r-- | test/rctest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rctest.c b/test/rctest.c index 2ffb47dd..31d2be0f 100644 --- a/test/rctest.c +++ b/test/rctest.c @@ -128,7 +128,7 @@ int do_connect(char *svr) memset(&conn, 0, sizeof(conn)); opt = sizeof(conn); - if (getsockopt(s, SOL_L2CAP, RFCOMM_CONNINFO, &conn, &opt) < 0) { + if (getsockopt(s, SOL_RFCOMM, RFCOMM_CONNINFO, &conn, &opt) < 0) { syslog(LOG_ERR, "Can't get RFCOMM connection information. %s(%d)", strerror(errno), errno); close(s); //return -1; @@ -172,7 +172,7 @@ void do_listen( void (*handler)(int sk) ) opt |= RFCOMM_LM_SECURE; if (setsockopt(s, SOL_RFCOMM, RFCOMM_LM, &opt, sizeof(opt)) < 0) { - syslog(LOG_ERR, "Can't set L2CAP link mode. %s(%d)", strerror(errno), errno); + syslog(LOG_ERR, "Can't set RFCOMM link mode. %s(%d)", strerror(errno), errno); exit(1); } |