summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-20 15:45:53 +0000
committerJim Meyering <jim@meyering.net>2003-01-20 15:45:53 +0000
commit6918da4447c79bbc8e42c7a37baa1f004733feb3 (patch)
tree9ffac800773e07d2941ea4c7803746252ffda35d /lib
parent8df5caa41460e76dee9ed78fd5fe572e165e1996 (diff)
downloadcoreutils-6918da4447c79bbc8e42c7a37baa1f004733feb3.tar.xz
(obstack_object_size): Declare temporary, __o, to be const.
(obstack_room): Likewise. (obstack_empty_p): Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/obstack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/obstack.h b/lib/obstack.h
index c949730e5..c8c4ae942 100644
--- a/lib/obstack.h
+++ b/lib/obstack.h
@@ -368,12 +368,12 @@ extern int obstack_exit_failure;
# define obstack_object_size(OBSTACK) \
__extension__ \
- ({ struct obstack *__o = (OBSTACK); \
+ ({ struct obstack const *__o = (OBSTACK); \
(unsigned) (__o->next_free - __o->object_base); })
# define obstack_room(OBSTACK) \
__extension__ \
- ({ struct obstack *__o = (OBSTACK); \
+ ({ struct obstack const *__o = (OBSTACK); \
(unsigned) (__o->chunk_limit - __o->next_free); })
# define obstack_make_room(OBSTACK,length) \
@@ -386,7 +386,7 @@ __extension__ \
# define obstack_empty_p(OBSTACK) \
__extension__ \
- ({ struct obstack *__o = (OBSTACK); \
+ ({ struct obstack const *__o = (OBSTACK); \
(__o->chunk->prev == 0 && __o->next_free - __o->chunk->contents == 0); })
# define obstack_grow(OBSTACK,where,length) \