Fix spelling of member of struct num_format.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Jan 2015 17:53:39 +0000 (17:53 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 3 Jan 2015 17:53:39 +0000 (17:53 +0000)
format.c

index 8b96830..94315e9 100644 (file)
--- a/format.c
+++ b/format.c
@@ -20,7 +20,7 @@ enum alignment {ALIGN_LEFT, ALIGN_RIGHT, ALIGN_CENTER};
 struct num_format {
        enum alignment align;
        char unit;
 struct num_format {
        enum alignment align;
        char unit;
-       int supress_unit;
+       int suppress_unit;
 };
 
 struct string_format {
 };
 
 struct string_format {
@@ -129,17 +129,17 @@ static int parse_atom(char *ap, struct atom *atoms, struct format_item **result)
                case AT_ID:
                        fi->af.nf.align = ALIGN_RIGHT;
                        fi->af.nf.unit = ' ';
                case AT_ID:
                        fi->af.nf.align = ALIGN_RIGHT;
                        fi->af.nf.unit = ' ';
-                       fi->af.nf.supress_unit = 0;
+                       fi->af.nf.suppress_unit = 0;
                        break;
                case AT_COUNT:
                        fi->af.nf.align = ALIGN_RIGHT;
                        fi->af.nf.unit = 'H';
                        break;
                case AT_COUNT:
                        fi->af.nf.align = ALIGN_RIGHT;
                        fi->af.nf.unit = 'H';
-                       fi->af.nf.supress_unit = 0;
+                       fi->af.nf.suppress_unit = 0;
                        break;
                case AT_SIZE:
                        fi->af.nf.align = ALIGN_RIGHT;
                        fi->af.nf.unit = 'h';
                        break;
                case AT_SIZE:
                        fi->af.nf.align = ALIGN_RIGHT;
                        fi->af.nf.unit = 'h';
-                       fi->af.nf.supress_unit = 0;
+                       fi->af.nf.suppress_unit = 0;
                        break;
                }
                if (!col)
                        break;
                }
                if (!col)
@@ -191,7 +191,7 @@ static int parse_atom(char *ap, struct atom *atoms, struct format_item **result)
                        goto err;
                }
                if (col[1] == '*') {
                        goto err;
                }
                if (col[1] == '*') {
-                       fi->af.nf.supress_unit = 1;
+                       fi->af.nf.suppress_unit = 1;
                        col++;
                }
                for (j = 0; units[j]; j++) {
                        col++;
                }
                for (j = 0; units[j]; j++) {
@@ -375,7 +375,7 @@ static long long unsigned normalize_number(long long unsigned num, char unit,
 static void get_unit_postfix(struct num_format *nf, char eu, enum atom_type type,
                char postfix[2])
 {
 static void get_unit_postfix(struct num_format *nf, char eu, enum atom_type type,
                char postfix[2])
 {
-       if (nf->supress_unit) {
+       if (nf->suppress_unit) {
                *postfix = '\0';
                return;
        }
                *postfix = '\0';
                return;
        }