summaryrefslogtreecommitdiffstats
path: root/dmidecode.c
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-07-01 23:14:17 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-07-01 23:14:17 +0000
commitc10adcd728be238d8579bf98075a2468f0143cc2 (patch)
tree4fa1bce13ff08de36ff95023af9356fa29c4c5bd /dmidecode.c
parenta7a5cb531b86a75265f106b91d7033e45d754612 (diff)
downloadpython-dmidecode-c10adcd728be238d8579bf98075a2468f0143cc2.tar.gz
python-dmidecode-c10adcd728be238d8579bf98075a2468f0143cc2.tar.xz
python-dmidecode-c10adcd728be238d8579bf98075a2468f0143cc2.zip
Brought main() back into the python module and fixed malloc/free problems.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@7 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecode.c')
-rw-r--r--dmidecode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dmidecode.c b/dmidecode.c
index 974f3f0..a00de7b 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -4049,7 +4049,7 @@ int submain(int argc, char * const argv[])
size_t fp;
int efi;
u8 *buf;
-
+
if(sizeof(u8)!=1 || sizeof(u16)!=2 || sizeof(u32)!=4 || '\0'!=0)
{
fprintf(stderr, "%s: compiler incompatibility\n", argv[0]);
@@ -4057,8 +4057,8 @@ int submain(int argc, char * const argv[])
}
/* Set default option values */
- opt.devmem=DEFAULT_MEM_DEV;
- opt.flags=0;
+ //. opt.devmem=DEFAULT_MEM_DEV;
+ //. opt.flags=0;
if(parse_command_line(argc, argv)<0)
{
@@ -4132,7 +4132,7 @@ done:
catsprintf(buffer, "# No SMBIOS nor DMI entry point found, sorry.\n");
exit_free:
- free(opt.type);
+ //. free(opt.type);
return ret;
}