aboutsummaryrefslogtreecommitdiff
path: root/fw_cfg.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-24 12:14:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-07-24 12:14:56 +0200
commit0f147388c0c23a2f7267ee0bf58333939d7a5d84 (patch)
tree99c3e4a51bb475b4513f75e1952cad34c31667e9 /fw_cfg.c
parente7fc653f44247f1008509a68bf9b666e33fea0e5 (diff)
downloadqboot-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.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/fw_cfg.c b/fw_cfg.c
index 7368933..8c97681 100644
--- a/fw_cfg.c
+++ b/fw_cfg.c
@@ -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)