patch-2.4.25 linux-2.4.25/drivers/acpi/utilities/utmisc.c
Next file: linux-2.4.25/drivers/acpi/utilities/utobject.c
Previous file: linux-2.4.25/drivers/acpi/utilities/utmath.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/acpi/utilities/utmisc.c
- Orig date:
2003-08-25 04:44:41.000000000 -0700
diff -urN linux-2.4.24/drivers/acpi/utilities/utmisc.c linux-2.4.25/drivers/acpi/utilities/utmisc.c
@@ -5,7 +5,7 @@
******************************************************************************/
/*
- * Copyright (C) 2000 - 2003, R. Byron Moore
+ * Copyright (C) 2000 - 2004, R. Byron Moore
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -304,16 +304,20 @@
u32 name)
{
char *name_ptr = (char *) &name;
- u32 i;
+ char character;
+ acpi_native_uint i;
ACPI_FUNCTION_ENTRY ();
for (i = 0; i < ACPI_NAME_SIZE; i++) {
- if (!((name_ptr[i] == '_') ||
- (name_ptr[i] >= 'A' && name_ptr[i] <= 'Z') ||
- (name_ptr[i] >= '0' && name_ptr[i] <= '9'))) {
+ character = *name_ptr;
+ name_ptr++;
+
+ if (!((character == '_') ||
+ (character >= 'A' && character <= 'Z') ||
+ (character >= '0' && character <= '9'))) {
return (FALSE);
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)