summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2005-08-17 13:18:34 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2005-08-17 13:18:34 +0000
commit63b1fbef1807e6addadf28ef19685743e496260c (patch)
tree39043317ec7522e6f191077bb151d56d450226e8
parentc6aee4de757f8b725dc5d7daedb1290d9d57a7a1 (diff)
add newlines in hostapd_fatal() calls, fix some typos.
thanks to Brian Poole.
-rw-r--r--usr.sbin/hostapd/hostapd.c8
-rw-r--r--usr.sbin/hostapd/iapp.c4
-rw-r--r--usr.sbin/hostapd/privsep.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/hostapd/hostapd.c b/usr.sbin/hostapd/hostapd.c
index 1785537bbbb..f79d47d78ce 100644
--- a/usr.sbin/hostapd/hostapd.c
+++ b/usr.sbin/hostapd/hostapd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostapd.c,v 1.16 2005/07/30 17:16:09 reyk Exp $ */
+/* $OpenBSD: hostapd.c,v 1.17 2005/08/17 13:18:33 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -244,7 +244,7 @@ hostapd_udp_init(struct hostapd_config *cfg)
/*
* The revised 802.11F standard requires IAPP messages to be
- * send via multicast to the group 224.0.1.178. Nevertheless,
+ * sent via multicast to the group 224.0.1.178. Nevertheless,
* some implementations still use broadcasts for IAPP
* messages.
*/
@@ -380,7 +380,7 @@ main(int argc, char *argv[])
case 'D':
if (hostapd_parse_symset(optarg) < 0)
hostapd_fatal("could not parse macro "
- "definition %s", optarg);
+ "definition %s\n", optarg);
break;
case 'd':
debug++;
@@ -464,7 +464,7 @@ main(int argc, char *argv[])
signal(SIGHUP, SIG_IGN);
signal(SIGCHLD, SIG_IGN);
- /* Initialize the IAPP protcol handler */
+ /* Initialize the IAPP protocol handler */
hostapd_iapp_init(cfg);
/*
diff --git a/usr.sbin/hostapd/iapp.c b/usr.sbin/hostapd/iapp.c
index 525094972a5..95d4a09859b 100644
--- a/usr.sbin/hostapd/iapp.c
+++ b/usr.sbin/hostapd/iapp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iapp.c,v 1.6 2005/07/04 18:48:26 deraadt Exp $ */
+/* $OpenBSD: iapp.c,v 1.7 2005/08/17 13:18:33 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -122,7 +122,7 @@ hostapd_iapp_radiotap(struct hostapd_config *cfg, u_int8_t *buf,
/*
* Send an HOSTAPD.pcap/radiotap message to other accesspoints with
- * with an appaneded network dump. This is an hostapd extension to
+ * with an appended network dump. This is an hostapd extension to
* IAPP.
*/
bzero(&hdr, sizeof(hdr));
diff --git a/usr.sbin/hostapd/privsep.c b/usr.sbin/hostapd/privsep.c
index 64cfeb776fb..5530cce53f5 100644
--- a/usr.sbin/hostapd/privsep.c
+++ b/usr.sbin/hostapd/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.12 2005/06/17 19:13:35 reyk Exp $ */
+/* $OpenBSD: privsep.c,v 1.13 2005/08/17 13:18:33 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -95,10 +95,10 @@ hostapd_priv_init(struct hostapd_config *cfg)
/* Create sockets */
if (socketpair(AF_LOCAL, SOCK_STREAM, PF_UNSPEC, socks) == -1)
- hostapd_fatal("failed to get socket pair");
+ hostapd_fatal("failed to get socket pair\n");
if ((child_pid = fork()) < 0)
- hostapd_fatal("failed to fork child process");
+ hostapd_fatal("failed to fork child process\n");
/*
* Unprivileged child process
@@ -113,7 +113,7 @@ hostapd_priv_init(struct hostapd_config *cfg)
if (chroot(pw->pw_dir) == -1)
hostapd_fatal("failed to change root directory\n");
if (chdir("/") == -1)
- hostapd_fatal("failed to change directory");
+ hostapd_fatal("failed to change directory\n");
/*
* Drop privileges and clear the group access list
@@ -121,7 +121,7 @@ hostapd_priv_init(struct hostapd_config *cfg)
if (setgroups(1, &pw->pw_gid) == -1 ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1 ||
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1)
- hostapd_fatal("can't drop privileges");
+ hostapd_fatal("can't drop privileges\n");
close(socks[0]);
priv_fd = socks[1];