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/dev_name.c | |
parent | 68bbdd1e18a87afede6cbdffdb8c7078ed3fa835 (diff) |
device: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'device/dev_name.c')
-rw-r--r-- | device/dev_name.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/device/dev_name.c b/device/dev_name.c index 930930b..49d96aa 100644 --- a/device/dev_name.c +++ b/device/dev_name.c @@ -65,9 +65,9 @@ nomap(void) */ boolean_t name_equal(src, len, target) - char *src; - int len; - char *target; + const char *src; + int len; + const char *target; { while (--len >= 0) if (*src++ != *target++) @@ -191,7 +191,7 @@ boolean_t dev_name_lookup(name, ops, unit) */ void dev_set_indirection(name, ops, unit) - char *name; + const char *name; dev_ops_t ops; int unit; { @@ -207,9 +207,9 @@ dev_set_indirection(name, ops, unit) } boolean_t dev_change_indirect(iname, dname, unit) - char *iname; - char *dname; - int unit; + const char *iname; + const char *dname; + int unit; { struct dev_ops *dp; struct dev_indirect *di; |