diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-16 23:55:12 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-17 19:02:20 +0100 |
commit | f4963a52e96230374826137cce44813c94853e6f (patch) | |
tree | f2cb67804faa33f4a735b9781f5bf77a830782c4 /device/net_io.c | |
parent | 68bbdd1e18a87afede6cbdffdb8c7078ed3fa835 (diff) | |
download | gnumach-f4963a52e96230374826137cce44813c94853e6f.tar.gz gnumach-f4963a52e96230374826137cce44813c94853e6f.tar.bz2 gnumach-f4963a52e96230374826137cce44813c94853e6f.zip |
device: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'device/net_io.c')
-rw-r--r-- | device/net_io.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/device/net_io.c b/device/net_io.c index 4c03f8ce..bce27b32 100644 --- a/device/net_io.c +++ b/device/net_io.c @@ -196,7 +196,7 @@ net_kmsg_get(void) } void -net_kmsg_put(ipc_kmsg_t kmsg) +net_kmsg_put(const ipc_kmsg_t kmsg) { spl_t s; @@ -373,7 +373,7 @@ decl_simple_lock_data(,net_hash_header_lock) */ boolean_t ethernet_priority(kmsg) - ipc_kmsg_t kmsg; + const ipc_kmsg_t kmsg; { unsigned char *addr = (unsigned char *) net_kmsg(kmsg)->header; @@ -694,7 +694,7 @@ int net_filter_queue_reorder = 0; /* non-zero to enable reordering */ */ void net_filter(kmsg, send_list) - ipc_kmsg_t kmsg; + const ipc_kmsg_t kmsg; ipc_kmsg_queue_t send_list; { struct ifnet *ifp; @@ -876,9 +876,9 @@ net_filter(kmsg, send_list) boolean_t net_do_filter(infp, data, data_count, header) net_rcv_port_t infp; - char * data; + const char * data; unsigned int data_count; - char * header; + const char * header; { int stack[NET_FILTER_STACK_DEPTH+1]; int *sp; @@ -1986,7 +1986,7 @@ bpf_eq (f1, f2, bytes) unsigned int bpf_hash (n, keys) int n; - unsigned int *keys; + const unsigned int *keys; { unsigned int hval = 0; @@ -2001,7 +2001,7 @@ int bpf_match (hash, n_keys, keys, hash_headpp, entpp) net_hash_header_t hash; int n_keys; - unsigned int *keys; + const unsigned int *keys; net_hash_entry_t **hash_headpp, *entpp; { net_hash_entry_t head, entp; |