From 9a3168d20e10314e18c8a518f48279457a1230f8 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sat, 24 Oct 2015 20:46:41 +0200 Subject: [PATCH] s/DUMP/CONFIG/ --- recorder.c | 6 ++---- storage.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/recorder.c b/recorder.c index 608928f..96d2028 100644 --- a/recorder.c +++ b/recorder.c @@ -639,14 +639,13 @@ void on_message(struct mosquitto *mosq, void *userdata, const struct mosquitto_m else if (!strcmp(j->string_, "beacon")) _type = T_BEACON; else if (!strcmp(j->string_, "card")) _type = T_CARD; else if (!strcmp(j->string_, "cmd")) _type = T_CMD; - else if (!strcmp(j->string_, "configuration")) _type = T_CONFIG; else if (!strcmp(j->string_, "lwt")) _type = T_LWT; else if (!strcmp(j->string_, "msg")) _type = T_MSG; else if (!strcmp(j->string_, "steps")) _type = T_STEPS; else if (!strcmp(j->string_, "transition")) _type = T_TRANSITION; else if (!strcmp(j->string_, "waypoint")) _type = T_WAYPOINT; else if (!strcmp(j->string_, "waypoints")) _type = T_WAYPOINTS; - else if (!strcmp(j->string_, "dump")) _type = T_DUMP; + else if (!strcmp(j->string_, "dump")) _type = T_CONFIG; } } @@ -659,7 +658,6 @@ void on_message(struct mosquitto *mosq, void *userdata, const struct mosquitto_m goto cleanup; case T_BEACON: case T_CMD: - case T_CONFIG: case T_LWT: case T_STEPS: if (r_ok) { @@ -669,7 +667,7 @@ void on_message(struct mosquitto *mosq, void *userdata, const struct mosquitto_m case T_WAYPOINTS: waypoints_dump(ud, username, device, m->payload); goto cleanup; - case T_DUMP: + case T_CONFIG: config_dump(ud, username, device, m->payload); goto cleanup; case T_WAYPOINT: diff --git a/storage.h b/storage.h index ab9d532..6e2d5a5 100644 --- a/storage.h +++ b/storage.h @@ -33,7 +33,6 @@ typedef enum { T_TRANSITION, T_WAYPOINT, T_WAYPOINTS, - T_DUMP, } payload_type; JsonNode *lister(char *username, char *device, time_t s_lo, time_t s_hi, int reverse);