Skip to content

Function open_lin_net_init() conflict #9

@iDoka

Description

@iDoka

I try to build last snapshot from github and have conflict with open_lin_net_init() which defined in two different places:

../../Src/lin_slcan.c:40:6: error: conflicting types for 'open_lin_net_init'
   40 | void open_lin_net_init(t_master_frame_table_item *a_slot_array, l_u8 a_slot_array_len);
      |      ^~~~~~~~~~~~~~~~~
In file included from ../../Src/open-LIN-c/open_lin_master_data_layer.h:12,
                 from ../../Src/slcan.h:8,
                 from ../../Src/lin_slcan.c:1:
../../Src/open-LIN-c/open_lin_network_layer.h:31:6: note: previous declaration of 'open_lin_net_init' was here
   31 | void open_lin_net_init(open_lin_frame_slot_t *a_slot_array, l_u8 a_slot_array_len);
      |      ^~~~~~~~~~~~~~~~~
make: *** [build/lin_slcan.o] Error 1

IDK whats wrong with this definition:

$ grep -n open_lin_net_init ../../Src/lin_slcan.c
40:void open_lin_net_init(t_master_frame_table_item *a_slot_array, l_u8 a_slot_array_len);
$ grep -nA10 open_lin_net_init ../../Src/open-LIN-c/open_lin_network_layer.h
31:void open_lin_net_init(open_lin_frame_slot_t *a_slot_array, l_u8 a_slot_array_len);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions