]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/if_ports_used.c
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / net / if_ports_used.c
index f5f7f9c11d32198e0a1576b0680b31d9e362f810..643df3b2d5de1787e424c8b716c6393b2778ca66 100644 (file)
 #include <sys/kauth.h>
 #include <sys/bitstring.h>
 #include <sys/priv.h>
+#include <sys/protosw.h>
 #include <sys/socket.h>
 
 #include <kern/locks.h>
 #include <kern/zalloc.h>
 
 #include <libkern/libkern.h>
-#include <mach/branch_predicates.h>
 
 #include <net/kpi_interface.h>
 #include <net/if_var.h>
@@ -461,13 +461,13 @@ sysctl_wakeuuid_not_set_last_time SYSCTL_HANDLER_ARGS
 #pragma unused(oidp, arg1, arg2)
 
        if (proc_is64bit(req->p)) {
-               struct user64_timeval tv;
+               struct user64_timeval tv = {};
 
                tv.tv_sec = wakeuuid_not_set_last_time.tv_sec;
                tv.tv_usec = wakeuuid_not_set_last_time.tv_usec;
                return SYSCTL_OUT(req, &tv, sizeof(tv));
        } else {
-               struct user32_timeval tv;
+               struct user32_timeval tv = {};
 
                tv.tv_sec = wakeuuid_not_set_last_time.tv_sec;
                tv.tv_usec = wakeuuid_not_set_last_time.tv_usec;