summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/cell.c
diff options
context:
space:
mode:
authorIgor Gnatenko2016-09-21 08:22:35 +0200
committerIgor Gnatenko2016-09-21 08:22:35 +0200
commit0e0943c15b173015c3ff9475085bd064204f9c74 (patch)
tree8ac5531bc2d5229d31184551a66655f36b8e2fae /libsmartcols/src/cell.c
parentlibsmartcols: make get_line/column_separator() return const (diff)
downloadkernel-qcow2-util-linux-0e0943c15b173015c3ff9475085bd064204f9c74.tar.gz
kernel-qcow2-util-linux-0e0943c15b173015c3ff9475085bd064204f9c74.tar.xz
kernel-qcow2-util-linux-0e0943c15b173015c3ff9475085bd064204f9c74.zip
debug: use const void * for ul_debugobj()
We don't modify data it's pointing out and we should not modify it. Also remove casting to void * as gcc will do it automatically (before we had to cast it explicitly to avoid warning on discarding 'const' qualifier). Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'libsmartcols/src/cell.c')
-rw-r--r--libsmartcols/src/cell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/src/cell.c b/libsmartcols/src/cell.c
index f2525cc4c..b887940c9 100644
--- a/libsmartcols/src/cell.c
+++ b/libsmartcols/src/cell.c
@@ -234,6 +234,6 @@ int scols_cell_copy_content(struct libscols_cell *dest,
if (!rc)
dest->userdata = src->userdata;
- DBG(CELL, ul_debugobj((void *) src, "copy into %p", dest));
+ DBG(CELL, ul_debugobj(src, "copy into %p", dest));
return rc;
}