]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: checked_read takes const where
authorPetr Machata <pmachata@redhat.com>
Mon, 11 Oct 2010 21:10:13 +0000 (23:10 +0200)
committerPetr Machata <pmachata@redhat.com>
Mon, 11 Oct 2010 21:10:13 +0000 (23:10 +0200)
dwarflint/checked_read.cc
dwarflint/checked_read.hh

index 0c74b42a919d73c31af3d17fdc1a5d12396e5d88..131449f57f91fa8114e219d8ba7d0e42d56261cd 100644 (file)
@@ -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)
index 6010b19d4d0f1e1a4d5586d3930a1b052946caef..612ec6977fff4ea07353659b7e75a6fdb574fb8b 100644 (file)
@@ -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