summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-05-22 13:37:07 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-05-22 13:37:07 +0200
commit80f0d6764aa2c54eabdc1b41321a46e8cbcce2b9 (patch)
tree5acc1e4793a51d29939a75571731d64597445cf4 /sysdep
parentd0c64519e798132b73ae5769b9246acb77b4c5aa (diff)
Fixes type mismatch on BSD systems.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/bsd/krt-sock.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index 806bd2bd..2e8f1b83 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -574,10 +574,11 @@ krt_scan_shutdown(struct krt_proto *x UNUSED, int last UNUSED)
}
static void
-krt_sysctl_scan(struct proto *p, pool *pool, byte **buf, int *bl, int cmd)
+krt_sysctl_scan(struct proto *p, pool *pool, byte **buf, size_t *bl, int cmd)
{
byte *next;
- int obl, needed, mib[6], on;
+ int mib[6], on;
+ size_t obl, needed;
struct ks_msg *m;
mib[0] = CTL_NET;
@@ -622,7 +623,7 @@ void
krt_scan_fire(struct krt_proto *p)
{
static byte *buf = NULL;
- static int bl = 32768;
+ static size_t bl = 32768;
krt_sysctl_scan((struct proto *)p , p->krt_pool, &buf, &bl, NET_RT_DUMP);
}
@@ -630,7 +631,7 @@ void
krt_if_scan(struct kif_proto *p)
{
static byte *buf = NULL;
- static int bl = 4096;
+ static size_t bl = 4096;
struct proto *P = (struct proto *)p;
if_start_update();
krt_sysctl_scan(P, P->pool, &buf, &bl, NET_RT_IFLIST);