#include "wpabuf.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Debugging function - conditional printf and hex dump. Driver wrappers can
* use these for debugging purposes. */
static inline void wpa_hexdump_buf(int level, const char *title,
const struct wpabuf *buf)
{
- wpa_hexdump(level, title, wpabuf_head(buf), wpabuf_len(buf));
+ wpa_hexdump(level, title, (const u8 *)wpabuf_head(buf), wpabuf_len(buf));
}
/**
static inline void wpa_hexdump_buf_key(int level, const char *title,
const struct wpabuf *buf)
{
- wpa_hexdump_key(level, title, wpabuf_head(buf), wpabuf_len(buf));
+ wpa_hexdump_key(level, title, (const u8 *)wpabuf_head(buf), wpabuf_len(buf));
}
/**
#define WPA_ASSERT(a) do { } while (0)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* WPA_DEBUG_H */