From a6741f23e91e81119bed892f5e496d1ae7a40634 Mon Sep 17 00:00:00 2001 From: liyuxi Date: Mon, 26 Dec 2022 08:48:38 +0000 Subject: [PATCH] fix(file plugin):fix format --- include/neuron/errcodes.h | 2 +- plugins/file/file_req.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/neuron/errcodes.h b/include/neuron/errcodes.h index 18dc24c5..fcc96657 100644 --- a/include/neuron/errcodes.h +++ b/include/neuron/errcodes.h @@ -125,7 +125,7 @@ typedef enum { NEU_ERR_MQTT_SUSPENDED = 4015, NEU_ERR_MQTT_PUBLISH_OVER_LENGTH = 4016, - NEU_ERR_FILE_TOO_LONG = 4100, + NEU_ERR_FILE_TOO_LONG = 4100, NEU_ERR_FILE_OPEN_FAILURE = 4101, NEU_ERR_FILE_READ_FAILURE = 4102, diff --git a/plugins/file/file_req.c b/plugins/file/file_req.c index 18bde63f..9d5f4fe7 100644 --- a/plugins/file/file_req.c +++ b/plugins/file/file_req.c @@ -46,7 +46,7 @@ int file_group_timer(neu_plugin_t *plugin, neu_plugin_group_t *group) utarray_foreach(group->tags, neu_datatag_t *, tag) { - FILE * f = NULL; + FILE * f = NULL; struct stat st = { 0 }; char * buf = calloc(1, length); neu_dvalue_t dvalue = { 0 };