diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-24 12:14:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-24 12:14:56 +0200 |
commit | 0f147388c0c23a2f7267ee0bf58333939d7a5d84 (patch) | |
tree | 99c3e4a51bb475b4513f75e1952cad34c31667e9 /fw_cfg.c | |
parent | e7fc653f44247f1008509a68bf9b666e33fea0e5 (diff) | |
download | qboot-0f147388c0c23a2f7267ee0bf58333939d7a5d84.zip qboot-0f147388c0c23a2f7267ee0bf58333939d7a5d84.tar.gz qboot-0f147388c0c23a2f7267ee0bf58333939d7a5d84.tar.bz2 |
do not mix tabs and spaces in a single file
Diffstat (limited to 'fw_cfg.c')
-rw-r--r-- | fw_cfg.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -46,18 +46,18 @@ void fw_cfg_setup(void) int filenamecmp(const char *a, const struct fw_cfg_file *f) { - int n = sizeof(f->name); - const char *b = f->name; - while (*a == *b) { - if (*a == '\0') { - break; - } - if (--n == 0) { - return *a; - } - ++a, ++b; - } - return *a - *b; + int n = sizeof(f->name); + const char *b = f->name; + while (*a == *b) { + if (*a == '\0') { + break; + } + if (--n == 0) { + return *a; + } + ++a, ++b; + } + return *a - *b; } int fw_cfg_file_id(char *name) @@ -89,9 +89,9 @@ void fw_cfg_read_file(int id, void *buf, int len) } struct fw_cfg_dma_descriptor { - uint32_t control; - uint32_t length; - uint64_t address; + uint32_t control; + uint32_t length; + uint64_t address; } __attribute__((packed)); void fw_cfg_dma(int control, void *buf, int len) |