diff options
author | reyk <reyk@openbsd.org> | 2005-12-10 13:10:07 +0000 |
---|---|---|
committer | reyk <reyk@openbsd.org> | 2005-12-10 13:10:07 +0000 |
commit | 442bc206a4e5757a6e5b48da21e1a7db804425d5 (patch) | |
tree | d397c0a253b43cb919aabf90b18383bba1d3e0c4 /usr.sbin/hostapd | |
parent | another go at cleaning up bus_dma usage. (diff) | |
download | wireguard-openbsd-442bc206a4e5757a6e5b48da21e1a7db804425d5.tar.xz wireguard-openbsd-442bc206a4e5757a6e5b48da21e1a7db804425d5.zip |
make lint more happy
Diffstat (limited to 'usr.sbin/hostapd')
-rw-r--r-- | usr.sbin/hostapd/apme.c | 4 | ||||
-rw-r--r-- | usr.sbin/hostapd/privsep.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/hostapd/apme.c b/usr.sbin/hostapd/apme.c index 32b67b93856..4c0406f8e06 100644 --- a/usr.sbin/hostapd/apme.c +++ b/usr.sbin/hostapd/apme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apme.c,v 1.8 2005/12/01 01:11:30 reyk Exp $ */ +/* $OpenBSD: apme.c,v 1.9 2005/12/10 13:10:07 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -159,7 +159,7 @@ hostapd_apme_input(int fd, short sig, void *arg) ep = bp + len; while (bp < ep) { - register int caplen, hdrlen; + register u_int caplen, hdrlen; caplen = bph->bh_caplen; hdrlen = bph->bh_hdrlen; diff --git a/usr.sbin/hostapd/privsep.c b/usr.sbin/hostapd/privsep.c index 0fd4eb9dec0..8e42568abd8 100644 --- a/usr.sbin/hostapd/privsep.c +++ b/usr.sbin/hostapd/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.16 2005/12/01 01:11:30 reyk Exp $ */ +/* $OpenBSD: privsep.c,v 1.17 2005/12/10 13:10:07 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -443,6 +443,7 @@ hostapd_may_read(int fd, void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; + /* FALLTHROUGH */ case 0: return (1); default: @@ -468,8 +469,10 @@ hostapd_must_read(int fd, void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; + /* FALLTHROUGH */ case 0: _exit(0); + break; default: pos += res; } @@ -492,8 +495,10 @@ hostapd_must_write(int fd, void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; + /* FALLTHROUGH */ case 0: _exit(0); + break; default: pos += res; } |