diff --git a/src/meas_lat.c b/src/meas_lat.c index 4b30f2d..0fdee95 100644 --- a/src/meas_lat.c +++ b/src/meas_lat.c @@ -34,8 +34,6 @@ int streq(char* s1, char* s2) { return strcmp(s1, s2) == 0; } -GHashTable* measurements; - struct evt_core_fdinfo* register_timer(struct evt_core_ctx* evts, struct measlat_ctx* mctx, struct measure_state* ms, struct timespec* next_tick) { struct timespec now; struct itimerspec timer_config; @@ -467,8 +465,6 @@ int main(int argc, char** argv) { setvbuf(stdout, NULL, _IONBF, 0); printf("~ measlat ~\n"); - measurements = g_hash_table_new_full(g_int_hash, g_int_equal, NULL, free_ms); - int opt; struct measlat_ctx mctx = {0}; struct evt_core_ctx evts = {0}; @@ -542,10 +538,8 @@ int main(int argc, char** argv) { // 5. Run main loop evt_core_loop(&evts); - g_hash_table_destroy (measurements); return 0; usage: - g_hash_table_destroy (measurements); fprintf(stderr, "Usage: %s [-h ] [-p ] [-l] [-r] [-t ] [-c ] [-i ] [-s ]\n", argv[0]); exit(EXIT_FAILURE); }