From 070cbed8dc6c802d8f89420524bd7b1e2d8d7804 Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Thu, 14 Mar 2024 11:00:54 +0100 Subject: [PATCH] fix members visibility --- src/platform/macos/c_libproc.rs | 2 +- src/platform/windows/c_iphlpapi.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/macos/c_libproc.rs b/src/platform/macos/c_libproc.rs index f710dcc..3b9cf7c 100644 --- a/src/platform/macos/c_libproc.rs +++ b/src/platform/macos/c_libproc.rs @@ -30,5 +30,5 @@ extern "C" { } extern "C" { - pub fn proc_name(pid: c_int, buffer: *mut c_void, buffersize: u32) -> c_int; + pub(super) fn proc_name(pid: c_int, buffer: *mut c_void, buffersize: u32) -> c_int; } diff --git a/src/platform/windows/c_iphlpapi.rs b/src/platform/windows/c_iphlpapi.rs index bc7fce0..d7ff4ae 100644 --- a/src/platform/windows/c_iphlpapi.rs +++ b/src/platform/windows/c_iphlpapi.rs @@ -3,7 +3,7 @@ use std::ffi::{c_int, c_ulong, c_void}; #[allow(non_snake_case)] #[link(name = "iphlpapi")] extern "system" { - pub fn GetExtendedTcpTable( + pub(super) fn GetExtendedTcpTable( pTcpTable: *mut c_void, pdwSize: *mut c_ulong, bOrder: c_int,