diff options
author | Igor Gnatenko | 2016-09-21 08:22:35 +0200 |
---|---|---|
committer | Igor Gnatenko | 2016-09-21 08:22:35 +0200 |
commit | 0e0943c15b173015c3ff9475085bd064204f9c74 (patch) | |
tree | 8ac5531bc2d5229d31184551a66655f36b8e2fae /libsmartcols/src/column.c | |
parent | libsmartcols: make get_line/column_separator() return const (diff) | |
download | kernel-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/column.c')
-rw-r--r-- | libsmartcols/src/column.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/src/column.c b/libsmartcols/src/column.c index 6a3b69bf1..cdc87e9b7 100644 --- a/libsmartcols/src/column.c +++ b/libsmartcols/src/column.c @@ -93,7 +93,7 @@ struct libscols_column *scols_copy_column(const struct libscols_column *cl) if (!ret) return NULL; - DBG(COL, ul_debugobj((void *) cl, "copy to %p", ret)); + DBG(COL, ul_debugobj(cl, "copy to %p", ret)); if (scols_column_set_color(ret, cl->color)) goto err; |