From 1d921ddf421ea7782c2b581c46e0db1eaa3d9792 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 6 May 2009 15:07:09 +0000 Subject: [PATCH] Explicit typecast to avoid compiler problems --- core/net/psock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/psock.h b/core/net/psock.h index 28b6df457..94dfb89f9 100644 --- a/core/net/psock.h +++ b/core/net/psock.h @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: psock.h,v 1.5 2009/03/17 20:28:44 nvt-se Exp $ + * $Id: psock.h,v 1.6 2009/05/06 15:07:09 adamdunkels Exp $ */ /** @@ -196,7 +196,7 @@ PT_THREAD(psock_send(struct psock *psock, const uint8_t *buf, unsigned int len)) * \hideinitializer */ #define PSOCK_SEND_STR(psock, str) \ - PT_WAIT_THREAD(&((psock)->pt), psock_send(psock, str, strlen(str))) + PT_WAIT_THREAD(&((psock)->pt), psock_send(psock, (uint8_t *)str, strlen(str))) PT_THREAD(psock_generator_send(struct psock *psock, unsigned short (*f)(void *), void *arg));