summaryrefslogtreecommitdiffstats
path: root/sys-utils/readprofile.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:44 +0100
committerKarel Zak2006-12-07 00:25:44 +0100
commit66ee8158b69525e12060ef558cb5d77feadab1dc (patch)
tree08b30f2d07df9213f5647bc6f60b5090a263ef43 /sys-utils/readprofile.c
parentImported from util-linux-2.10m tarball. (diff)
downloadkernel-qcow2-util-linux-66ee8158b69525e12060ef558cb5d77feadab1dc.tar.gz
kernel-qcow2-util-linux-66ee8158b69525e12060ef558cb5d77feadab1dc.tar.xz
kernel-qcow2-util-linux-66ee8158b69525e12060ef558cb5d77feadab1dc.zip
Imported from util-linux-2.10s tarball.
Diffstat (limited to 'sys-utils/readprofile.c')
-rw-r--r--sys-utils/readprofile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index 551b2cbf4..b531fa90a 100644
--- a/sys-utils/readprofile.c
+++ b/sys-utils/readprofile.c
@@ -81,7 +81,7 @@ main (int argc, char **argv) {
FILE *map;
int proFd;
char *mapFile, *proFile;
- unsigned long len=0, add0=0, index=0;
+ unsigned long len=0, add0=0, indx=0;
unsigned int step;
unsigned int *buf, total, fn_len;
unsigned long fn_add, next_add; /* current and next address */
@@ -201,8 +201,8 @@ main (int argc, char **argv) {
if (*mode == 'A' && total == 0) continue;
if (*mode!='T' && *mode!='t') break; /* only text is profiled */
- while (index < (next_add-add0)/step)
- this += buf[index++];
+ while (indx < (next_add-add0)/step)
+ this += buf[indx++];
total += this;
fn_len = next_add-fn_add;