]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - libfdisk/src/bsd.c
Use libsmartcols in libfdisk and cfdisk
[thirdparty/util-linux.git] / libfdisk / src / bsd.c
index 4ece79fb21ecf3d8972ba76d35083d55353539c6..a81afd2c3c8941edb0f069446e0ffc30d11cc777 100644 (file)
@@ -15,6 +15,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <sys/param.h>
+#include <libsmartcols.h>
 
 #include "nls.h"
 #include "blkdev.h"
@@ -879,15 +880,15 @@ static const struct fdisk_label_operations bsd_operations =
 static const struct fdisk_column bsd_columns[] =
 {
        { FDISK_COL_DEVICE,     N_("Slice"),      1,    0 },
-       { FDISK_COL_START,      N_("Start"),      5,    TT_FL_RIGHT },
-       { FDISK_COL_END,        N_("End"),        5,    TT_FL_RIGHT },
-       { FDISK_COL_SECTORS,    N_("Sectors"),    5,    TT_FL_RIGHT },
-       { FDISK_COL_CYLINDERS,  N_("Cylinders"),  5,    TT_FL_RIGHT },
-       { FDISK_COL_SIZE,       N_("Size"),       5,    TT_FL_RIGHT },
+       { FDISK_COL_START,      N_("Start"),      5,    SCOLS_FL_RIGHT },
+       { FDISK_COL_END,        N_("End"),        5,    SCOLS_FL_RIGHT },
+       { FDISK_COL_SECTORS,    N_("Sectors"),    5,    SCOLS_FL_RIGHT },
+       { FDISK_COL_CYLINDERS,  N_("Cylinders"),  5,    SCOLS_FL_RIGHT },
+       { FDISK_COL_SIZE,       N_("Size"),       5,    SCOLS_FL_RIGHT },
        { FDISK_COL_TYPE,       N_("Type"),       8,    0 },
-       { FDISK_COL_FSIZE,      N_("Fsize"),      5,    TT_FL_RIGHT },
-       { FDISK_COL_BSIZE,      N_("Bsize"),      5,    TT_FL_RIGHT },
-       { FDISK_COL_CPG,        N_("Cpg"),        5,    TT_FL_RIGHT }
+       { FDISK_COL_FSIZE,      N_("Fsize"),      5,    SCOLS_FL_RIGHT },
+       { FDISK_COL_BSIZE,      N_("Bsize"),      5,    SCOLS_FL_RIGHT },
+       { FDISK_COL_CPG,        N_("Cpg"),        5,    SCOLS_FL_RIGHT }
 };
 
 /*