some fixes for platform minimal-net

This commit is contained in:
Olaf Bergmann committed 2012-01-06 15:27:48 +01:00
1 parent 263e149ffd
commit 7503262aa9
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ UIP_CONF_IPV6=1
#CFLAGS += -DUIP_CONF_IPV6_RPL=1
ifeq ($(TARGET), minimal-net)
CFLAGS += -DHAVE_ASSERT_H
CFLAGS += -DHAVE_ASSERT_H -DWITH_UIP6=1
endif
ifeq ($(TARGET), mbxxx)
+2 -2
View File
@@ -67,8 +67,8 @@ static inline size_t
print_timestamp(char *s, size_t len, coap_tick_t t) {
#ifdef HAVE_SNPRINTF
return snprintf(s, len, "%u.%03u",
clock_offset + (t / COAP_TICKS_PER_SECOND),
t % COAP_TICKS_PER_SECOND);
(unsigned int)(clock_offset + (t / COAP_TICKS_PER_SECOND)),
(unsigned int)(t % COAP_TICKS_PER_SECOND));
#else /* HAVE_SNPRINTF */
/* @todo do manual conversion of timestamp */
return 0;
+4
View File
@@ -8,6 +8,10 @@
#include "config.h"
#if defined(HAVE_ASSERT_H) && !defined(assert)
# include <assert.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>