diff options
| author | martin <martin@NetBSD.org> | 2021-02-07 13:52:55 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2021-02-07 13:52:55 +0000 |
| commit | 5ba844f561a4c04b58ef20088efdbd627272c868 (patch) | |
| tree | d55de06701f54ada781efa50717a23d572043e55 /usr.sbin | |
| parent | 1455b4bbe453cc1843e46b9e3d5e9e5c23876fc0 (diff) | |
Pull up following revision(s) (requested by tsutsui in ticket #1200):
usr.sbin/isibootd/isibootd.c: revision 1.4
Fix "Cannot allocate memory" failure on amd64.
BIOCGBLEN ioctl of bpf(4) requires u_int, not size_t.
The problem is reported by Kenji Aoyama.
Should be pulled up to netbsd-9 and netbsd-8.
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/isibootd/isibootd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/isibootd/isibootd.c b/usr.sbin/isibootd/isibootd.c index 32239924767..23cd2504b5b 100644 --- a/usr.sbin/isibootd/isibootd.c +++ b/usr.sbin/isibootd/isibootd.c @@ -1,4 +1,4 @@ -/* $NetBSD: isibootd.c,v 1.3 2012/04/02 09:01:30 nisimura Exp $ */ +/* $NetBSD: isibootd.c,v 1.3.36.1 2021/02/07 13:52:55 martin Exp $ */ /* Id: isiboot.c,v 1.2 1999/12/26 14:33:33 nisimura Exp */ /*- @@ -364,7 +364,7 @@ createbpfport(char *ifname, uint8_t **iobufp, size_t *iolenp, struct ifreq ifr; int fd; u_int type; - size_t buflen; + u_int buflen; uint8_t dladdr[ETHER_ADDR_LEN], *buf; #ifdef BIOCIMMEDIATE u_int flag; |
