diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2015-11-25 21:04:42 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2015-11-25 21:04:42 +0000 | 
| commit | b9098066cd6284319bca922f13e59517f774a103 (patch) | |
| tree | f01fd6c9053cb01ed84c00cb42ee789adafceaf5 /source/components/utilities/utdecode.c | |
| parent | 1e24cf365bc9c8df179b145c90d52852724e54ee (diff) | |
Notes
Diffstat (limited to 'source/components/utilities/utdecode.c')
| -rw-r--r-- | source/components/utilities/utdecode.c | 31 | 
1 files changed, 15 insertions, 16 deletions
| diff --git a/source/components/utilities/utdecode.c b/source/components/utilities/utdecode.c index fc21e205845b..e8f380f0c51f 100644 --- a/source/components/utilities/utdecode.c +++ b/source/components/utilities/utdecode.c @@ -119,7 +119,7 @@ const char        *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS] =  }; -char * +const char *  AcpiUtGetRegionName (      UINT8                   SpaceId)  { @@ -141,7 +141,7 @@ AcpiUtGetRegionName (          return ("InvalidSpaceId");      } -    return (ACPI_CAST_PTR (char, AcpiGbl_RegionTypes[SpaceId])); +    return (AcpiGbl_RegionTypes[SpaceId]);  } @@ -169,7 +169,7 @@ static const char        *AcpiGbl_EventTypes[ACPI_NUM_FIXED_EVENTS] =  }; -char * +const char *  AcpiUtGetEventName (      UINT32                  EventId)  { @@ -179,7 +179,7 @@ AcpiUtGetEventName (          return ("InvalidEventID");      } -    return (ACPI_CAST_PTR (char, AcpiGbl_EventTypes[EventId])); +    return (AcpiGbl_EventTypes[EventId]);  } @@ -201,7 +201,8 @@ AcpiUtGetEventName (   *   * The type ACPI_TYPE_ANY (Untyped) is used as a "don't care" when searching;   * when stored in a table it really means that we have thus far seen no - * evidence to indicate what type is actually going to be stored for this entry. + * evidence to indicate what type is actually going to be stored for this + & entry.   */  static const char           AcpiGbl_BadType[] = "UNDEFINED"; @@ -243,21 +244,21 @@ static const char           *AcpiGbl_NsTypeNames[] =  }; -char * +const char *  AcpiUtGetTypeName (      ACPI_OBJECT_TYPE        Type)  {      if (Type > ACPI_TYPE_INVALID)      { -        return (ACPI_CAST_PTR (char, AcpiGbl_BadType)); +        return (AcpiGbl_BadType);      } -    return (ACPI_CAST_PTR (char, AcpiGbl_NsTypeNames[Type])); +    return (AcpiGbl_NsTypeNames[Type]);  } -char * +const char *  AcpiUtGetObjectTypeName (      ACPI_OPERAND_OBJECT     *ObjDesc)  { @@ -299,7 +300,7 @@ AcpiUtGetObjectTypeName (   *   ******************************************************************************/ -char * +const char *  AcpiUtGetNodeName (      void                    *Object)  { @@ -375,7 +376,7 @@ static const char           *AcpiGbl_DescTypeNames[] =  }; -char * +const char *  AcpiUtGetDescriptorName (      void                    *Object)  { @@ -390,9 +391,7 @@ AcpiUtGetDescriptorName (          return ("Not a Descriptor");      } -    return (ACPI_CAST_PTR (char, -        AcpiGbl_DescTypeNames[ACPI_GET_DESCRIPTOR_TYPE (Object)])); - +    return (AcpiGbl_DescTypeNames[ACPI_GET_DESCRIPTOR_TYPE (Object)]);  } @@ -469,7 +468,7 @@ AcpiUtGetReferenceName (  /* Names for internal mutex objects, used for debug output */ -static char                 *AcpiGbl_MutexNames[ACPI_NUM_MUTEX] = +static const char           *AcpiGbl_MutexNames[ACPI_NUM_MUTEX] =  {      "ACPI_MTX_Interpreter",      "ACPI_MTX_Namespace", @@ -479,7 +478,7 @@ static char                 *AcpiGbl_MutexNames[ACPI_NUM_MUTEX] =      "ACPI_MTX_Memory",  }; -char * +const char *  AcpiUtGetMutexName (      UINT32                  MutexId)  { | 
