diff options
author | Petr Machata <pmachata@redhat.com> | 2010-10-11 23:10:13 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2010-10-11 23:10:13 +0200 |
commit | 2ac57aeb4d9f593f1fe117190199b6cb74c45dc7 (patch) | |
tree | bc50233d72473e96f542b65fcf6d115c79a66e1d | |
parent | 26f4311272edbb16ba1c2a2884c6740f7fcea9d8 (diff) | |
download | elfutils-2ac57aeb4d9f593f1fe117190199b6cb74c45dc7.tar.gz |
dwarflint: checked_read takes const where
-rw-r--r-- | dwarflint/checked_read.cc | 8 | ||||
-rw-r--r-- | dwarflint/checked_read.hh | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/dwarflint/checked_read.cc b/dwarflint/checked_read.cc index 0c74b42a..131449f5 100644 --- a/dwarflint/checked_read.cc +++ b/dwarflint/checked_read.cc @@ -98,8 +98,8 @@ read_address_size (struct read_ctx *ctx, } bool -checked_read_uleb128 (struct read_ctx *ctx, uint64_t *ret, - struct where *where, const char *what) +checked_read_uleb128 (read_ctx *ctx, uint64_t *ret, + where const *where, const char *what) { const unsigned char *ptr = ctx->ptr; int st = read_ctx_read_uleb128 (ctx, ret); @@ -116,7 +116,7 @@ checked_read_uleb128 (struct read_ctx *ctx, uint64_t *ret, bool checked_read_sleb128 (read_ctx *ctx, int64_t *ret, - where *where, const char *what) + where const *where, const char *what) { const unsigned char *ptr = ctx->ptr; int st = read_ctx_read_sleb128 (ctx, ret); @@ -134,7 +134,7 @@ checked_read_sleb128 (read_ctx *ctx, int64_t *ret, bool checked_read_leb128 (read_ctx *ctx, form_width_t width, uint64_t *ret, - where *where, const char *what) + where const *where, const char *what) { assert (width == fw_sleb || width == fw_uleb); if (width == fw_sleb) diff --git a/dwarflint/checked_read.hh b/dwarflint/checked_read.hh index 6010b19d..612ec697 100644 --- a/dwarflint/checked_read.hh +++ b/dwarflint/checked_read.hh @@ -39,12 +39,12 @@ bool read_address_size (read_ctx *ctx, where const *where); bool checked_read_uleb128 (read_ctx *ctx, uint64_t *ret, - where *where, const char *what); + where const *where, const char *what); bool checked_read_sleb128 (read_ctx *ctx, int64_t *ret, - where *where, const char *what); + where const *where, const char *what); bool checked_read_leb128 (read_ctx *ctx, form_width_t width, uint64_t *ret, - where *where, const char *what); + where const *where, const char *what); #endif//DWARFLINT_CHECKED_READ_HH |