diff options
| author | christos <christos@NetBSD.org> | 2015-11-20 20:37:08 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2015-11-20 20:37:08 +0000 |
| commit | 014ebeb574a0199dafacda1e2d564bbf933bdef7 (patch) | |
| tree | 57ae48d19b7c199eef1014758dc4f9b66777e8e7 /include | |
| parent | 2f06744537d5a23b6f1f934d83e490be8cf8f248 (diff) | |
add some const
Diffstat (limited to 'include')
| -rw-r--r-- | include/bitstring.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/bitstring.h b/include/bitstring.h index 332bea3c1ca..e6a96e0071f 100644 --- a/include/bitstring.h +++ b/include/bitstring.h @@ -1,4 +1,4 @@ -/* $NetBSD: bitstring.h,v 1.11 2015/11/20 20:27:20 christos Exp $ */ +/* $NetBSD: bitstring.h,v 1.12 2015/11/20 20:37:08 christos Exp $ */ /* * Copyright (c) 1989, 1993 @@ -109,7 +109,7 @@ typedef unsigned char bitstr_t; /* find first bit clear in name */ #define bit_ffc(name, nbits, value) do { \ - bitstr_t *_name = name; \ + const bitstr_t *_name = name; \ size_t _bit, _nbits = nbits; \ int _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ @@ -122,7 +122,7 @@ typedef unsigned char bitstr_t; /* find first bit set in name */ #define bit_ffs(name, nbits, value) do { \ - bitstr_t *_name = name; \ + const bitstr_t *_name = name; \ size_t _bit, _nbits = nbits; \ int _value = -1; \ for (_bit = 0; _bit < _nbits; ++_bit) \ |
