diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index d2fcbd1d1e..77d668c5af 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -159,7 +159,7 @@ void taos_init_imp(void) { void taos_init() { pthread_once(&tscinit, taos_init_imp); } // this function may be called by user or system, or by both simultaneously. -void taos_cleanup() { +void taos_cleanup(void) { tscDebug("start to cleanup client environment"); void* m = tscMetaCache; diff --git a/src/inc/taos.h b/src/inc/taos.h index 3153137347..2c6454ced1 100644 --- a/src/inc/taos.h +++ b/src/inc/taos.h @@ -64,7 +64,7 @@ typedef struct taosField { #endif DLL_EXPORT void taos_init(); -DLL_EXPORT void taos_cleanup(); +DLL_EXPORT void taos_cleanup(void); DLL_EXPORT int taos_options(TSDB_OPTION option, const void *arg, ...); DLL_EXPORT TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, uint16_t port); DLL_EXPORT void taos_close(TAOS *taos);