X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=format.c;h=736cb7c327e94647b79a08383c176b0644f20d30;hb=61a9284a7dbcffd2a770135d5f2482ae10459ab9;hp=02edf37aaf15f27154fd1cefbb7c02515f7b3ba2;hpb=06ed2a8ccb7f05eacb530a34f222a1d900f35bf5;p=adu.git diff --git a/format.c b/format.c index 02edf37..736cb7c 100644 --- a/format.c +++ b/format.c @@ -4,7 +4,7 @@ * Licensed under the GPL v2. For licencing details see COPYING. */ -/** \file format.c Functions for pretty-printing numbers and strings. */ +/** \file format.c \brief Functions for pretty-printing numbers and strings. */ #include /* readdir() */ #include "adu.h" @@ -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); }