summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
authorIgor Gnatenko2016-09-21 08:30:48 +0200
committerIgor Gnatenko2016-09-21 08:36:00 +0200
commitf7a9ea28eff5c71b6fd07b49b16d14bdecaeb4f0 (patch)
tree888103c32f6ea3749b1cb2e74f204e4ab02b13e5 /libsmartcols/src/smartcolsP.h
parentdebug: use const void * for ul_debugobj() (diff)
downloadkernel-qcow2-util-linux-f7a9ea28eff5c71b6fd07b49b16d14bdecaeb4f0.tar.gz
kernel-qcow2-util-linux-f7a9ea28eff5c71b6fd07b49b16d14bdecaeb4f0.tar.xz
kernel-qcow2-util-linux-f7a9ea28eff5c71b6fd07b49b16d14bdecaeb4f0.zip
libsmartcols: use const qualifier where it's possible
Closes: https://github.com/karelzak/util-linux/issues/355 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r--libsmartcols/src/smartcolsP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h
index e4aeec46a..ca6ea1be7 100644
--- a/libsmartcols/src/smartcolsP.h
+++ b/libsmartcols/src/smartcolsP.h
@@ -184,7 +184,7 @@ struct libscols_table {
} while(0)
-static inline int scols_iter_is_last(struct libscols_iter *itr)
+static inline int scols_iter_is_last(const struct libscols_iter *itr)
{
if (!itr || !itr->head || !itr->p)
return 0;