X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fax25.h;h=b8ebe47cf76de0a13ec3af0849a29cf19e4766a1;hb=b9e1e52093d33494bf4a8ca27c14a56a25b6e0bc;hp=dd439445465495b37357bff42766af1281bbe39b;hpb=b88ab4ad33932a6c95702f45ac1b6dac693c74ec;p=bertos.git diff --git a/bertos/net/ax25.h b/bertos/net/ax25.h index dd439445..b8ebe47c 100644 --- a/bertos/net/ax25.h +++ b/bertos/net/ax25.h @@ -183,7 +183,7 @@ void ax25_sendVia(AX25Ctx *ctx, const AX25Call *path, size_t path_len, const voi * * \see ax25_sendVia() if you want to send a frame with a specific path. */ -#define ax25_send(ctx, dst, src, buf, len) ax25_sendVia(ctx, ({static AX25Call __path[]={dst, src}; __path;}), 2, buf, len) +#define ax25_send(ctx, dst, src, buf, len) ax25_sendVia(ctx, ({static AX25Call __path[]={dst, src}; (AX25Call *)&__path;}), 2, buf, len) void ax25_init(AX25Ctx *ctx, KFile *channel, ax25_callback_t hook); void ax25_print(KFile *ch, const AX25Msg *msg);