Skip to content
Snippets Groups Projects
Commit 3b47d981 authored by Harout Hedeshian's avatar Harout Hedeshian
Browse files

datatop: remove unused variables

Removed unused variables in dtop_stat_search in datatop_stat_poll.c
and get_number_of_values in datatop_gen_poll.c because it was not
compiling with newer GCC revisions.

Change-Id: Icd8316b0e9bf5070762a18aa1ab65859b31dba5d
parent e21de8dc
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,10 @@ static int get_number_of_values(struct dtop_data_point_gatherer *dpg)
read = dt_read_file(dpg->file, &data, DTOP_GEN_SIZE);
line_len = dt_read_line(line, DTOP_GEN_LINE, data, DTOP_GEN_SIZE, 0);
if (read == 0) {
return 0;
}
if (line_len < 1) {
dt_free(&data);
return 0;
......
......@@ -219,7 +219,7 @@ static void construct_stat_file_dpg(struct dtop_data_point
*/
int dtop_stat_search(struct dtop_stat_vars *storage)
{
int i, k, n, sum;
int i, n, sum;
char *data;
int *line_len = malloc(sizeof(int) * storage->line_count);
int read;
......@@ -297,7 +297,6 @@ int dtop_stat_search(struct dtop_stat_vars *storage)
count++;
}
}
k = 0;
/* Calls dpg constructor, dpg will point to the dp struct */
construct_stat_file_dpg(data_points, storage, dp_count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment