]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols remove duplicate code
authorKarel Zak <kzak@redhat.com>
Fri, 22 Apr 2016 11:59:06 +0000 (13:59 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Apr 2016 12:17:21 +0000 (14:17 +0200)
commit8fcdce8fffeb243184d1f0bf1460a23cd0c598e3
tree70afca7890e959f15661606f6673928b8643685a
parentdeb1c903272d45e8a1975b1da151d4deb3defe3b
libsmartcols remove duplicate code

For petty long time we have strdup_to_struct_member() macro to avoid
duplicate code when strdup() strings in setter functions. Let's use it
for libmount.

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/cell.c
libsmartcols/src/column.c
libsmartcols/src/line.c
libsmartcols/src/smartcolsP.h
libsmartcols/src/symbols.c
libsmartcols/src/table.c