]> rtime.felk.cvut.cz Git - arc.git/commitdiff
Fixed unused function warning when not using runtime configuration of pdu ids in...
authormaek <devnull@localhost>
Wed, 29 Jun 2011 11:37:07 +0000 (13:37 +0200)
committermaek <devnull@localhost>
Wed, 29 Jun 2011 11:37:07 +0000 (13:37 +0200)
communication/CanIf/CanIf.c

index 23e317e219bf9386488087a0375495745e9434be..11dc912cfde94ef02271c4ba06e18a63e6ccc49c 100644 (file)
@@ -346,22 +346,18 @@ static const CanIf_TxPduConfigType * CanIf_FindTxPduEntry(PduIdType id)
        } else {\r
                return &CanIf_ConfigPtr->InitConfig->CanIfTxPduConfigPtr[id];\r
        }\r
-  }\r
+}\r
 \r
+
 #if ( CANIF_ARC_RUNTIME_PDU_CONFIGURATION == STD_ON )\r
-CanIf_RxPduConfigType * CanIf_FindRxPduEntry(PduIdType id)\r
-#else\r
-static const CanIf_RxPduConfigType * CanIf_FindRxPduEntry(PduIdType id)
-#endif\r
-{
-       if (id >= CanIf_ConfigPtr->InitConfig->CanIfNumberOfCanRxPduIds) {
-               return NULL;
-       } else {
-               return &CanIf_ConfigPtr->InitConfig->CanIfRxPduConfigPtr[id];
-       }
-}
+CanIf_RxPduConfigType * CanIf_FindRxPduEntry(PduIdType id) {\r
+       if (id >= CanIf_ConfigPtr->InitConfig->CanIfNumberOfCanRxPduIds) {\r
+               return NULL;\r
+       } else {\r
+               return &CanIf_ConfigPtr->InitConfig->CanIfRxPduConfigPtr[id];\r
+       }\r
+}\r
 
-#if ( CANIF_ARC_RUNTIME_PDU_CONFIGURATION == STD_ON )
 const CanIf_HrhConfigType* CanIf_Arc_GetReceiveHandler(CanIf_Arc_ChannelIdType Channel) {
   const CanIf_InitHohConfigType *hohConfig;
   const CanIf_HrhConfigType *hrhConfig;