diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-10-26 08:55:37 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-10-26 08:55:37 +0000 |
commit | 953d63ab64c0dd5309d7844d9f81c7effe1bcc53 (patch) | |
tree | 21239ceaf9a5b78a6d1074236fcf4061de5d4d0a /usr.sbin | |
parent | ffc48a5b70b5c9b043a0c7638925e7d1ea78b7ce (diff) |
Use proper type in sizeof()
OK phessler@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index 75c4b6122e3..c4caf992379 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.180 2018/10/24 08:26:37 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.181 2018/10/26 08:55:36 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -477,7 +477,7 @@ path_init(u_int32_t hashsize) for (hs = 1; hs < hashsize; hs <<= 1) ; - pathtable.path_hashtbl = calloc(hs, sizeof(struct aspath_queue)); + pathtable.path_hashtbl = calloc(hs, sizeof(*pathtable.path_hashtbl)); if (pathtable.path_hashtbl == NULL) fatal("path_init"); |