Code

Turbostat: complex read register is now useless
authorVincent Brillault <git@lerya.net>
Tue, 23 Sep 2014 19:40:46 +0000 (21:40 +0200)
committerVincent Brillault <git@lerya.net>
Sat, 28 Feb 2015 06:35:41 +0000 (07:35 +0100)
src/turbostat.c

index 2f07a58272e7481702eba6e3500d2e950ef27ccf..276159da79ed1f0ef89e3376f0eddbad2a328d6c 100644 (file)
@@ -1450,7 +1450,7 @@ err:
 }
 
 static int
-turbostat_read(user_data_t * not_used)
+turbostat_read(void)
 {
        int ret;
 
@@ -1532,7 +1532,7 @@ turbostat_init(void)
 
        DO_OR_GOTO_ERR(setup_all_buffers());
 
-       plugin_register_complex_read(NULL, PLUGIN_NAME, turbostat_read, NULL, NULL);
+       plugin_register_read(PLUGIN_NAME, turbostat_read);
 
        return 0;
 err: