summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-03 23:41:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-03 23:41:29 +0100
commitd593f4c0721695688042eb5295c52c06ded07942 (patch)
treef0bb50ee139b1434cb801b61eb451f84c543401f
parentd93d4ce48438fc9c9dc4a57320289e30f65d78e0 (diff)
Avoid old type
* include/device/bpf.h: Do not include <sys/types.h> (struct bpf_version): Use unsigned short type instead of u_short.
-rw-r--r--include/device/bpf.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/device/bpf.h b/include/device/bpf.h
index 7bb5e106..abc2d777 100644
--- a/include/device/bpf.h
+++ b/include/device/bpf.h
@@ -68,8 +68,6 @@
#ifndef _DEVICE_BPF_H_
#define _DEVICE_BPF_H_
-#include <sys/types.h> /* u_short */
-
/*
* Alignment macros. BPF_WORDALIGN rounds up to the next
* even multiple of BPF_ALIGNMENT.
@@ -89,8 +87,8 @@
* It has nothing to do with the source code version.
*/
struct bpf_version {
- u_short bv_major;
- u_short bv_minor;
+ unsigned short bv_major;
+ unsigned short bv_minor;
};
/* Current version number. */
#define BPF_MAJOR_VERSION 1