summaryrefslogtreecommitdiff
path: root/device/net_io.h
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-16 23:55:12 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-17 19:02:20 +0100
commitf4963a52e96230374826137cce44813c94853e6f (patch)
treef2cb67804faa33f4a735b9781f5bf77a830782c4 /device/net_io.h
parent68bbdd1e18a87afede6cbdffdb8c7078ed3fa835 (diff)
device: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'device/net_io.h')
-rw-r--r--device/net_io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/device/net_io.h b/device/net_io.h
index 0cdd712..0ffdc92 100644
--- a/device/net_io.h
+++ b/device/net_io.h
@@ -100,14 +100,14 @@ extern unsigned short int ntohs(unsigned short int);
extern unsigned int htonl(unsigned int);
extern unsigned short int htons(unsigned short int);
-unsigned int bpf_hash(int n, unsigned int *keys);
+unsigned int bpf_hash(int n, const unsigned int *keys);
extern boolean_t
net_do_filter(
net_rcv_port_t infp,
- char * data,
+ const char * data,
unsigned int data_count,
- char * header); /* CSPF */
+ const char * header); /* CSPF */
extern int
bpf_do_filter(
@@ -145,7 +145,7 @@ int net_add_q_info(ipc_port_t rcv_port);
int bpf_match (
net_hash_header_t hash,
int n_keys,
- unsigned int *keys,
+ const unsigned int *keys,
net_hash_entry_t **hash_headpp,
net_hash_entry_t *entpp);