Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: wakaama/liblwm2m.c
- Revision:
- 12:cc4b0014fc3a
- Parent:
- 11:1fadb70654a6
- Child:
- 14:ec9e195830ff
--- a/wakaama/liblwm2m.c Wed May 03 19:00:24 2017 +0800
+++ b/wakaama/liblwm2m.c Wed May 03 19:07:42 2017 +0800
@@ -56,24 +56,6 @@
#include <stdio.h>
-#ifdef MBED_OS_EXAMPLE_WAKAAMA
-int gettimeofday(struct timeval* t, void* timezone)
-{
- t->tv_sec = time(NULL);
- t->tv_usec = 0;
- return 0; /* 1sec precision only */
-}
-
-char * strdup(const char *s)
-{
- size_t len = strlen(s) +1;
- void *new = malloc(len);
- if (new == NULL)
- return NULL;
- return (char *)memecpy(new,s,len);
-}
-
-#endif
lwm2m_context_t * lwm2m_init(void * userData)
{