Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include add some const



details:   https://anonhg.NetBSD.org/src/rev/d1e85b53e5b3
branches:  trunk
changeset: 811885:d1e85b53e5b3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 20 20:37:08 2015 +0000

description:
add some const

diffstat:

 include/bitstring.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 112fe37af0e5 -r d1e85b53e5b3 include/bitstring.h
--- a/include/bitstring.h       Fri Nov 20 20:27:20 2015 +0000
+++ b/include/bitstring.h       Fri Nov 20 20:37:08 2015 +0000
@@ -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 @@
 
                                /* 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 @@
 
                                /* 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) \



Home | Main Index | Thread Index | Old Index