$OpenBSD: patch-src_daemon_interfaces-bsd_c,v 1.2 2016/01/21 08:43:32 sthen Exp $
--- src/daemon/interfaces-bsd.c.orig	Tue Jan  5 19:25:38 2016
+++ src/daemon/interfaces-bsd.c	Thu Jan 21 00:14:19 2016
@@ -469,10 +469,10 @@ ifbsd_macphy(struct lldpd *cfg,
     struct lldpd_hardware *hardware)
 {
 #ifdef ENABLE_DOT3
-	int media_list[32] = {};
+	uint64_t media_list[32] = {};
 	struct ifmediareq ifmr = {
 		.ifm_ulist = media_list,
-		.ifm_count = sizeof(media_list) / sizeof(int)
+		.ifm_count = sizeof(media_list) / sizeof(uint64_t)
 	};
 	struct lldpd_port *port = &hardware->h_lport;
 	unsigned int duplex;
