Skip to content

Commit 03c1b02

Browse files
committed
nets, tests: Minor housekeeping and cleanup.
* net_unix: Fix typo. * net_ssh: Add missing space. * tests/test.c: Remove duplicate include.
1 parent ff0763b commit 03c1b02

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

nets/net_ssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ static int auth_none(ssh_session session, const char *user, void *userdata)
339339
return SSH_AUTH_DENIED;
340340
}
341341

342-
/* We're not calling bbs_authenticate or bbs_user_authenticatehere,
342+
/* We're not calling bbs_authenticate or bbs_user_authenticate here,
343343
* the user still has to authenticate for real (but will do so interactively)
344344
* ... this is the "normal" way of logging in for a BBS, like with Telnet/RLogin, etc.
345345
*/

nets/net_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static pthread_t uds_thread;
6060
* means you don't need to juggle port conflicts if you'd like the BBS to run on the well-known ports (e.g. 22, 23, etc.)
6161
* but you want those to be handled by the system network login services instead.
6262
*
63-
* NOTE: You are much better of proxying to the BBS's SSH module even if it's running on a different port.
63+
* NOTE: You are much better off proxying to the BBS's SSH module even if it's running on a different port.
6464
* For example, exec ssh localhost -p 2222
6565
* The UNIX socket driver will not properly pass signals and does not support window sizing. It's very primitive.
6666
* You are advised to avoid using this module for production usage.

tests/test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include <sys/time.h>
4242
#include <sys/socket.h>
4343
#include <netinet/in.h> /* use sockaddr_in */
44-
#include <netinet/in.h>
4544
#include <arpa/inet.h>
4645
#include <pwd.h> /* use getpwnam */
4746
#include <limits.h> /* use PATH_MAX */

0 commit comments

Comments
 (0)