Skip to content

build fail #22

@Pro-pra

Description

@Pro-pra

#21 partial help fix build, need fix for libsam3a.c

my error after attempt fiх libsam3a.c:

src/libsam3a/libsam3a.c:923:57: error: invalid conversion from 'void*' to 'void (*)(Sam3ASession*)' [-fpermissive]
  923 |       void (*cbComplete)(Sam3ASession * ses) = ses->aio.udata;
      |                                                ~~~~~~~~~^~~~~
      |                                                         |
      |                                                         void*
src/libsam3a/libsam3a.c: In function 'int sam3aSesStartHandshake(Sam3ASession*, void (*)(Sam3ASession*))':
src/libsam3a/libsam3a.c:936:22: error: invalid conversion from 'void (*)(Sam3ASession*)' to 'void*' [-fpermissive]
  936 |     ses->aio.udata = cbComplete;
      |                      ^~~~~~~~~~
      |                      |
      |                      void (*)(Sam3ASession*)

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