[rtems-libbsd commit] NETSTAT(1): Disable unused functions

Sebastian Huber sebh at rtems.org
Mon Mar 6 11:10:27 UTC 2017


Module:    rtems-libbsd
Branch:    master
Commit:    08f48819f7d31b612aa1f4caba52fa59514e3c43
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=08f48819f7d31b612aa1f4caba52fa59514e3c43

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar  6 12:07:13 2017 +0100

NETSTAT(1): Disable unused functions

---

 freebsd/usr.bin/netstat/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/freebsd/usr.bin/netstat/main.c b/freebsd/usr.bin/netstat/main.c
index 1628036..53b4d9b 100644
--- a/freebsd/usr.bin/netstat/main.c
+++ b/freebsd/usr.bin/netstat/main.c
@@ -803,6 +803,7 @@ kresolve_list(struct nlist *_nl)
 	return (0);
 }
 
+#ifndef __rtems__
 /*
  * Wrapper of kvm_dpcpu_setcpu().
  */
@@ -818,6 +819,7 @@ kset_dpcpu(u_int cpuid)
 		    cpuid, kvm_geterr(kvmd)); 
 	return;
 }
+#endif /* __rtems__ */
 
 /*
  * Read kernel memory, return 0 on success.
@@ -838,6 +840,7 @@ kread(u_long addr, void *buf, size_t size)
 	return (0);
 }
 
+#ifndef __rtems__
 /*
  * Read single counter(9).
  */
@@ -850,6 +853,7 @@ kread_counter(u_long addr)
 
 	return (kvm_counter_u64_fetch(kvmd, addr));
 }
+#endif /* __rtems__ */
 
 /*
  * Read an array of N counters in kernel memory into array of N uint64_t's.



More information about the vc mailing list