Add extra LUFA TAR archive export exclusions.
[pub/USBasp.git] / LUFA / Drivers / USB / Class / Host / AndroidAccessoryClassHost.c
index 2de149e..eb4c253 100644 (file)
@@ -7,7 +7,7 @@
 */\r
 \r
 /*\r
 */\r
 \r
 /*\r
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this\r
   software and its documentation for any purpose is hereby granted\r
 \r
   Permission to use, copy, modify, distribute, and sell this\r
   software and its documentation for any purpose is hereby granted\r
@@ -41,6 +41,8 @@ bool AOA_Host_ValidateAccessoryDevice(USB_ClassInfo_AOA_Host_t* const AOAInterfa
                                       const USB_Descriptor_Device_t* const DeviceDescriptor,\r
                                       bool* const NeedModeSwitch)\r
 {\r
                                       const USB_Descriptor_Device_t* const DeviceDescriptor,\r
                                       bool* const NeedModeSwitch)\r
 {\r
+       (void)AOAInterfaceInfo;\r
+\r
        if (DeviceDescriptor->Header.Type != DTYPE_Device)\r
          return false;\r
 \r
        if (DeviceDescriptor->Header.Type != DTYPE_Device)\r
          return false;\r
 \r
@@ -231,7 +233,7 @@ static uint8_t AOA_Host_GetAccessoryProtocol(uint16_t* const Protocol)
 static uint8_t AOA_Host_SendPropertyString(USB_ClassInfo_AOA_Host_t* const AOAInterfaceInfo,\r
                                            const uint8_t StringIndex)\r
 {      \r
 static uint8_t AOA_Host_SendPropertyString(USB_ClassInfo_AOA_Host_t* const AOAInterfaceInfo,\r
                                            const uint8_t StringIndex)\r
 {      \r
-       const char* String = ((char**)&AOAInterfaceInfo->Config.PropertyStrings)[StringIndex];\r
+       const char* String = AOAInterfaceInfo->Config.PropertyStrings[StringIndex];\r
        \r
        if (String == NULL)\r
          String = "";\r
        \r
        if (String == NULL)\r
          String = "";\r