diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index d2fcbd1d1e2641b07b0023f5244c8eb3141d27ca..77d668c5af152eb96ae2f0e698b806444faed667 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 315313734753de73bf477b1f67783a45c38c87c9..2c6454ced1911de603f120c79af5237c2f064c48 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);