diff options
Diffstat (limited to 'sys/dev/microcode/udl/build.c')
-rw-r--r-- | sys/dev/microcode/udl/build.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/microcode/udl/build.c b/sys/dev/microcode/udl/build.c index d3d09146868..cf9e1f1e12c 100644 --- a/sys/dev/microcode/udl/build.c +++ b/sys/dev/microcode/udl/build.c @@ -1,4 +1,4 @@ -/* $OpenBSD: build.c,v 1.4 2009/08/26 12:23:39 mglocker Exp $ */ +/* $OpenBSD: build.c,v 1.5 2009/08/26 12:32:27 mglocker Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -30,19 +30,19 @@ int main(void) { int fd, i; - uint32_t size; - uint32_t value; + uint32_t bit_count; + uint32_t bit_pattern; fd = open(FILENAME, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd == -1) err(1, "%s", FILENAME); for (i = 0; i < UDL_HUFFMAN_RECORDS; i++) { - size = udl_huffman[i].size; - value = htobe32(udl_huffman[i].value); - if (write(fd, &size, sizeof(size)) == -1) + bit_count = udl_huffman[i].bit_count; + bit_pattern = htobe32(udl_huffman[i].bit_pattern); + if (write(fd, &bit_count, sizeof(bit_count)) == -1) err(1, "write"); - if (write(fd, &value, sizeof(value)) == -1) + if (write(fd, &bit_pattern, sizeof(bit_pattern)) == -1) err(1, "write"); } |