X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=format.c;h=736cb7c327e94647b79a08383c176b0644f20d30;hb=2fbdc259c1d15d1b4f3f5f85cfae07d3bb842fe9;hp=f1d1247074da8c97c41368aa3663b037dbbfc4bd;hpb=3bb9b0ca535be1eb28b64972bdf0e205e6afc93e;p=adu.git diff --git a/format.c b/format.c index f1d1247..736cb7c 100644 --- a/format.c +++ b/format.c @@ -14,6 +14,7 @@ #include "error.h" #include "format.h" +/** The three different alignment types. */ enum alignment {ALIGN_LEFT, ALIGN_RIGHT, ALIGN_CENTER}; struct num_format { @@ -448,9 +449,7 @@ char *format_items(struct format_info *info, union atom_value *values) align = af->sf.align; val = align_string(values[idx].string_value, fi->width, align); } else { - char unit; align = af->nf.align; - unit = af->nf.unit; val = align_unsigned_int(values[idx].num_value, fi->width, &af->nf, type); }