]> sourceware.org Git - lvm2.git/commitdiff
Fix constness warning
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Oct 2010 13:36:57 +0000 (13:36 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Oct 2010 13:36:57 +0000 (13:36 +0000)
Fix usage of const 'data' pointer and also assign void* directly without
uneeded cast for C.

tools/dmsetup.c

index a38fc4cf926fffc8e60d103f03157259f70c7bb7..88291f77243aeb0c9f931eb9a2b92ed953a08452 100644 (file)
@@ -2399,7 +2399,7 @@ static int _dm_deps_disp(struct dm_report *rh, struct dm_pool *mem,
                         struct dm_report_field *field, const void *data,
                         void *private)
 {
-       struct dm_deps *deps = (struct dm_deps *) data;
+       const struct dm_deps *deps = data;
        int i;
        char buf[DM_MAX_TYPE_NAME], *repstr;
 
This page took 1.206652 seconds and 5 git commands to generate.