summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/stp_dump.c
diff options
context:
space:
mode:
authortrz <trz>2005-10-19 14:32:25 +0000
committertrz <trz>2005-10-19 14:32:25 +0000
commit707cb4bfb6e6e918dba16021ca0ae29671660d68 (patch)
tree1318d16434563d7fe0b490a4530cc3c26da4bd8c /runtime/stpd/stp_dump.c
parent0e1e055939eb528f1d2ec28b47faf6dd12ede0fa (diff)
downloadsystemtap-steved-707cb4bfb6e6e918dba16021ca0ae29671660d68.tar.gz
systemtap-steved-707cb4bfb6e6e918dba16021ca0ae29671660d68.tar.xz
systemtap-steved-707cb4bfb6e6e918dba16021ca0ae29671660d68.zip
switch to binary TIMESTAMP
Diffstat (limited to 'runtime/stpd/stp_dump.c')
-rw-r--r--runtime/stpd/stp_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stpd/stp_dump.c b/runtime/stpd/stp_dump.c
index 287d915c..5923a2e1 100644
--- a/runtime/stpd/stp_dump.c
+++ b/runtime/stpd/stp_dump.c
@@ -31,7 +31,7 @@ static void usage (char *prog)
exit(1);
}
-#define TIMESTAMP_SIZE 11
+#define TIMESTAMP_SIZE (sizeof(int))
int main (int argc, char *argv[])
{
@@ -53,7 +53,7 @@ int main (int argc, char *argv[])
int numbytes = 0;
if (fread (buf, TIMESTAMP_SIZE, 1, fp))
- seq = strtoul (buf, NULL, 10);
+ seq = *((int *)buf);
else
break;