Move unpack lwip ip address macro to macros module.
[bertos.git] / bertos / net / ax25.h
index dd439445465495b37357bff42766af1281bbe39b..b8ebe47cf76de0a13ec3af0849a29cf19e4766a1 100644 (file)
@@ -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);