summaryrefslogtreecommitdiffstats
path: root/runtime/lket/b2a/lket_b2a.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lket/b2a/lket_b2a.c')
-rw-r--r--runtime/lket/b2a/lket_b2a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lket/b2a/lket_b2a.c b/runtime/lket/b2a/lket_b2a.c
index 0df76207..f924dcfe 100644
--- a/runtime/lket/b2a/lket_b2a.c
+++ b/runtime/lket/b2a/lket_b2a.c
@@ -190,7 +190,7 @@ int main(int argc, char *argv[])
cpufreq[j].last_cycles = hdrs[j].microsecond;
cpufreq[HDR_CpuID(&hdrs[j])].timebase = new_timebase;
- fseek(infps[j], SEEK_CUR, -sizeof(new_timebase));
+ fseek(infps[j], -sizeof(new_timebase), SEEK_CUR);
}
dump_data(hdrs[j], infps[j]);
@@ -491,7 +491,7 @@ int dump_data(lket_pkt_header header, FILE *infp)
long long lltemp;
int readbytes = 0;
int total_bytes = 0;
- int size;
+ int size = 0;
int evt_num = 1;
char *fmt, *name, *buffer;