From: Petr Machata Date: Mon, 11 Oct 2010 21:10:13 +0000 (+0200) Subject: dwarflint: checked_read takes const where X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ac57aeb4d9f593f1fe117190199b6cb74c45dc7;p=thirdparty%2Felfutils.git dwarflint: checked_read takes const where --- diff --git a/dwarflint/checked_read.cc b/dwarflint/checked_read.cc index 0c74b42a9..131449f57 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 6010b19d4..612ec6977 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