diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2017-02-13 16:52:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 16:52:34 -0700 |
commit | 3f475fad0fc6b6b03bc0bf7a61edc986148f0786 (patch) | |
tree | 410ace763f3f513081338d6803c2a755582b3202 /src/survive.c | |
parent | dd949f9495956ab87795f6a75e8257d0a37325fd (diff) | |
parent | ee433e4a076f77fa28e4d55d6703d6ed7c599251 (diff) | |
download | libsurvive-3f475fad0fc6b6b03bc0bf7a61edc986148f0786.tar.gz libsurvive-3f475fad0fc6b6b03bc0bf7a61edc986148f0786.tar.bz2 |
Merge pull request #8 from cnlohr/master
Updating Master
Diffstat (limited to 'src/survive.c')
-rw-r--r-- | src/survive.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/survive.c b/src/survive.c index af4d804..ed18da2 100644 --- a/src/survive.c +++ b/src/survive.c @@ -8,7 +8,7 @@ #include <jsmn.h> #include <string.h> #include <zlib.h> -#include "disambiguator.h" + static int jsoneq(const char *json, jsmntok_t *tok, const char *s) { if (tok->type == JSMN_STRING && (int) strlen(s) == tok->end - tok->start && @@ -147,21 +147,10 @@ struct SurviveContext * survive_init() ctx->headset.ctx = ctx; memcpy( ctx->headset.codename, "HMD", 4 ); -#ifndef USE_OLD_DISAMBIGUATOR - ctx->headset.d = calloc( 1, sizeof( struct disambiguator ) ); -#endif - ctx->watchman[0].ctx = ctx; memcpy( ctx->watchman[0].codename, "WM0", 4 ); -#ifndef USE_OLD_DISAMBIGUATOR - ctx->watchman[0].d = calloc( 1, sizeof( struct disambiguator ) ); -#endif - ctx->watchman[1].ctx = ctx; memcpy( ctx->watchman[1].codename, "WM1", 4 ); -#ifndef USE_OLD_DISAMBIGUATOR - ctx->watchman[1].d = calloc( 1, sizeof( struct disambiguator ) ); -#endif //USB must happen last. if( r = survive_usb_init( ctx ) ) |