diff options
author | Karel Zak | 2016-04-22 13:59:06 +0200 |
---|---|---|
committer | Karel Zak | 2016-04-22 14:17:21 +0200 |
commit | 8fcdce8fffeb243184d1f0bf1460a23cd0c598e3 (patch) | |
tree | 70afca7890e959f15661606f6673928b8643685a /libsmartcols/src/smartcolsP.h | |
parent | libmount: remove duplicate code (diff) | |
download | kernel-qcow2-util-linux-8fcdce8fffeb243184d1f0bf1460a23cd0c598e3.tar.gz kernel-qcow2-util-linux-8fcdce8fffeb243184d1f0bf1460a23cd0c598e3.tar.xz kernel-qcow2-util-linux-8fcdce8fffeb243184d1f0bf1460a23cd0c598e3.zip |
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>
Diffstat (limited to 'libsmartcols/src/smartcolsP.h')
-rw-r--r-- | libsmartcols/src/smartcolsP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h index 377ab8045..e29ec7d93 100644 --- a/libsmartcols/src/smartcolsP.h +++ b/libsmartcols/src/smartcolsP.h @@ -13,6 +13,7 @@ #include "c.h" #include "list.h" +#include "strutils.h" #include "color-names.h" #include "debug.h" |