Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292743
b: refs/heads/master
c: a51f404
h: refs/heads/master
i:
  292741: d12bdaa
  292739: cbee7d4
  292735: 878d44e
v: v3
  • Loading branch information
H. Peter Anvin committed Feb 29, 2012
1 parent 1b1c030 commit 6c3215d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8d43cb504a94f1070159a37c8cb23008276eff3
refs/heads/master: a51f4047758d2bcd099ea113b833ed380f4024ba
7 changes: 4 additions & 3 deletions trunk/arch/x86/boot/tools/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;
typedef unsigned int u32;

#define DEFAULT_MAJOR_ROOT 0
#define DEFAULT_MINOR_ROOT 0
Expand Down Expand Up @@ -247,8 +247,9 @@ int main(int argc, char ** argv)
}

/* Write the CRC */
fprintf(stderr, "CRC %lx\n", crc);
if (fwrite(&crc, 1, 4, stdout) != 4)
fprintf(stderr, "CRC %x\n", crc);
put_unaligned_le32(crc, buf);
if (fwrite(buf, 1, 4, stdout) != 4)
die("Writing CRC failed");

close(fd);
Expand Down

0 comments on commit 6c3215d

Please sign in to comment.