summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2010-10-11 23:10:13 +0200
committerPetr Machata <pmachata@redhat.com>2010-10-11 23:10:13 +0200
commit2ac57aeb4d9f593f1fe117190199b6cb74c45dc7 (patch)
treebc50233d72473e96f542b65fcf6d115c79a66e1d
parent26f4311272edbb16ba1c2a2884c6740f7fcea9d8 (diff)
downloadelfutils-2ac57aeb4d9f593f1fe117190199b6cb74c45dc7.tar.gz
dwarflint: checked_read takes const where
-rw-r--r--dwarflint/checked_read.cc8
-rw-r--r--dwarflint/checked_read.hh6
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