From a4a07b0955dfe6d77e046db346b69e48c7d29066 Mon Sep 17 00:00:00 2001 From: nima Date: Wed, 29 Oct 2008 07:04:19 +0000 Subject: Upstream. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@77 abc39116-655e-4be6-ad55-d661dc543056 --- vpdopt.c | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'vpdopt.c') diff --git a/vpdopt.c b/vpdopt.c index c895202..021ade2 100644 --- a/vpdopt.c +++ b/vpdopt.c @@ -2,7 +2,7 @@ * Command line handling of vpddecode * This file is part of the dmidecode project. * - * (C) 2005 Jean Delvare + * Copyright (C) 2005-2007 Jean Delvare * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,11 +28,9 @@ #include "util.h" #include "vpdopt.h" -#include "global.h" - /* Options are global */ -//struct opt opt; +struct opt opt; /* @@ -42,7 +40,7 @@ /* This lookup table could admittedly be reworked for improved performance. Due to the low count of items in there at the moment, it did not seem worth the additional code complexity though. */ -static const struct string_keyword opt_string_keyword[]={ +static const struct string_keyword opt_string_keyword[] = { { "bios-build-id", 0x0D, 9 }, { "box-serial-number", 0x16, 7 }, { "motherboard-serial-number", 0x1D, 11 }, @@ -55,7 +53,7 @@ static void print_opt_string_list(void) unsigned int i; fprintf(stderr, "Valid string keywords are:\n"); - for(i=0; i