diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-03 23:41:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-03 23:41:29 +0100 |
commit | d593f4c0721695688042eb5295c52c06ded07942 (patch) | |
tree | f0bb50ee139b1434cb801b61eb451f84c543401f /include | |
parent | d93d4ce48438fc9c9dc4a57320289e30f65d78e0 (diff) | |
download | gnumach-d593f4c0721695688042eb5295c52c06ded07942.tar.gz gnumach-d593f4c0721695688042eb5295c52c06ded07942.tar.bz2 gnumach-d593f4c0721695688042eb5295c52c06ded07942.zip |
Avoid old type
* include/device/bpf.h: Do not include <sys/types.h>
(struct bpf_version): Use unsigned short type instead of u_short.
Diffstat (limited to 'include')
-rw-r--r-- | include/device/bpf.h | 6 |
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 |