summaryrefslogtreecommitdiffstats
path: root/src/util/efirom.c
diff options
context:
space:
mode:
authorMichael Brown2012-04-10 20:38:54 +0200
committerMichael Brown2012-04-10 20:38:54 +0200
commit196751ce95fa6b6566a5b336193681fad3581fd1 (patch)
tree5f4c47b8b7099513f34f6219abccb437b8656cb9 /src/util/efirom.c
parent[igbvf] Add i350 virtual function support (diff)
downloadipxe-196751ce95fa6b6566a5b336193681fad3581fd1.tar.gz
ipxe-196751ce95fa6b6566a5b336193681fad3581fd1.tar.xz
ipxe-196751ce95fa6b6566a5b336193681fad3581fd1.zip
[build] Enable warnings when building utilities
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/efirom.c')
-rw-r--r--src/util/efirom.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/util/efirom.c b/src/util/efirom.c
index d0bdace6..a65abfee 100644
--- a/src/util/efirom.c
+++ b/src/util/efirom.c
@@ -57,18 +57,6 @@ static void * xmalloc ( size_t len ) {
}
/**
- * Get file size
- *
- * @v file File
- * @v len File size
- */
-static size_t file_size ( FILE *file ) {
- ssize_t len;
-
- return len;
-}
-
-/**
* Read information from PE headers
*
* @v pe PE file
@@ -239,15 +227,15 @@ static int parse_options ( const int argc, char **argv,
}
int main ( int argc, char **argv ) {
- struct options opts = {
- };
- unsigned int infile_index;
+ struct options opts;
+ int infile_index;
const char *infile_name;
const char *outfile_name;
FILE *infile;
FILE *outfile;
/* Parse command-line arguments */
+ memset ( &opts, 0, sizeof ( opts ) );
infile_index = parse_options ( argc, argv, &opts );
if ( argc != ( infile_index + 2 ) ) {
print_help ( argv[0] );