summaryrefslogtreecommitdiffstats
path: root/dmidecode.c
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-08-06 07:00:41 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-08-06 07:00:41 +0000
commit1f0c5e5936f3c0bb55419c6ee1f55e9ff3f0078d (patch)
treec3a6bf70d4257783bf4a6b501bb93bd0bfd6541d /dmidecode.c
parent78f950bf54293a9afeb0e9aea46009a883eb5b5b (diff)
downloadpython-dmidecode-1f0c5e5936f3c0bb55419c6ee1f55e9ff3f0078d.tar.gz
python-dmidecode-1f0c5e5936f3c0bb55419c6ee1f55e9ff3f0078d.tar.xz
python-dmidecode-1f0c5e5936f3c0bb55419c6ee1f55e9ff3f0078d.zip
Converted function for `case 24'.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@45 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'dmidecode.c')
-rw-r--r--dmidecode.c4
1 files changed, 2 insertions, 2 deletions
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]);
}
/*******************************************************************************