From 1f0c5e5936f3c0bb55419c6ee1f55e9ff3f0078d Mon Sep 17 00:00:00 2001 From: nima Date: Wed, 6 Aug 2008 07:00:41 +0000 Subject: Converted function for `case 24'. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@45 abc39116-655e-4be6-ad55-d661dc543056 --- dmidecode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmidecode.c') diff --git a/dmidecode.c b/dmidecode.c index d32aa00..57b9bed 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -2369,7 +2369,7 @@ static PyObject *dmi_system_reset_timer(u16 code) { * 3.3.25 Hardware Security (Type 24) */ -static const char *dmi_hardware_security_status(u8 code) { +static PyObject *dmi_hardware_security_status(u8 code) { static const char *status[]={ "Disabled", /* 0x00 */ "Enabled", @@ -2377,7 +2377,7 @@ static const char *dmi_hardware_security_status(u8 code) { "Unknown" /* 0x03 */ }; - return status[code]; + return PyString_FromString(status[code]); } /******************************************************************************* -- cgit