pahole: Make pipe_seek() honour the 'fp' arg instead of hardcoding stdin
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
9aa01472d9
commit
2d35630fa5
2
pahole.c
2
pahole.c
|
@ -1670,7 +1670,7 @@ static int pipe_seek(FILE *fp, off_t offset)
|
||||||
if (chunk > offset)
|
if (chunk > offset)
|
||||||
chunk = offset;
|
chunk = offset;
|
||||||
|
|
||||||
while (fread(bf, chunk, 1, stdin) == 1) {
|
while (fread(bf, chunk, 1, fp) == 1) {
|
||||||
offset -= chunk;
|
offset -= chunk;
|
||||||
if (offset == 0)
|
if (offset == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue