diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-09-07 21:31:06 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-09-07 21:31:06 +0000 |
commit | 39fdcbf9f0e117629cea42ce335529a7061fada6 (patch) | |
tree | 94d4e7903e2bd70bda95b55985545613abb93729 /util/getpir/getpir.c | |
parent | 7b08c116b9bb3aaf2059935e46f51446a27f93ee (diff) | |
download | coreboot-39fdcbf9f0e117629cea42ce335529a7061fada6.tar.xz |
seperate code generation
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1646 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/getpir/getpir.c')
-rw-r--r-- | util/getpir/getpir.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/util/getpir/getpir.c b/util/getpir/getpir.c index 5bcdd452a3..7f08af6f6a 100644 --- a/util/getpir/getpir.c +++ b/util/getpir/getpir.c @@ -33,7 +33,6 @@ static struct irq_routing_table *probe_table(int fd_mem) main() { int fd_mem; - FILE *fpir; struct irq_routing_table *rt; if (getuid()) { @@ -50,13 +49,7 @@ main() printf("Checksum is ok!\n"); printf("Creating irq_tables.c .....\n"); - fpir = fopen("irq_tables.c", "w"); - if (!fpir) { - printf("Failed creating file!\n"); - exit(2); - } - code_gen(fpir, rt); - fclose(fpir); + code_gen("irq_tables.c", rt); close(fd_mem); |