[rtems-libbsd commit] BPF(9): Remove RTEMS-specifics
Sebastian Huber
sebh at rtems.org
Thu Oct 12 07:39:39 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: c79946a3dedfee063527e5c7da9e25af42bf4da8
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=c79946a3dedfee063527e5c7da9e25af42bf4da8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 12 09:38:16 2017 +0200
BPF(9): Remove RTEMS-specifics
---
freebsd/sys/net/bpf.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c
index 48c01a0..259a253 100644
--- a/freebsd/sys/net/bpf.c
+++ b/freebsd/sys/net/bpf.c
@@ -2426,19 +2426,12 @@ bpf_hdrlen(struct bpf_d *d)
static void
bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype)
{
-#ifndef __rtems__
struct bintime bt2, boottimebin;
-#else /* __rtems__ */
- struct bintime bt2;
-#endif /* __rtems__ */
struct timeval tsm;
struct timespec tsn;
if ((tstype & BPF_T_MONOTONIC) == 0) {
bt2 = *bt;
-#ifndef __rtems__
- getboottimebin(&boottimebin);
-#endif /* __rtems__ */
bintime_add(&bt2, &boottimebin);
bt = &bt2;
}
More information about the vc
mailing list