From 8abe0c138937e37b9efd93a8ace12f960e38c010 Mon Sep 17 00:00:00 2001 From: jistone Date: Wed, 20 Sep 2006 21:11:44 +0000 Subject: 2006-09-20 Josh Stone * lket/b2a/lket_b2a.c (main): Correct arguments to fseek. (dump_data): Work around a spurious compiler warning. --- runtime/ChangeLog | 3 +++ runtime/lket/b2a/lket_b2a.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/runtime/ChangeLog b/runtime/ChangeLog index a973e61c..8dd6cd52 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -9,6 +9,9 @@ in the cpufreq notifier. (_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us. + * lket/b2a/lket_b2a.c (main): Correct arguments to fseek. + (dump_data): Work around a spurious compiler warning. + 2006-09-19 Li Guanglei * lket/b2a/lket_b2a.c, lket/b2a/lket_b2a.h: 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; -- cgit