From 707cb4bfb6e6e918dba16021ca0ae29671660d68 Mon Sep 17 00:00:00 2001 From: trz Date: Wed, 19 Oct 2005 14:32:25 +0000 Subject: switch to binary TIMESTAMP --- runtime/stpd/stp_merge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/stpd/stp_merge.c') diff --git a/runtime/stpd/stp_merge.c b/runtime/stpd/stp_merge.c index ecd9b64a..14cb785b 100644 --- a/runtime/stpd/stp_merge.c +++ b/runtime/stpd/stp_merge.c @@ -31,7 +31,7 @@ static void usage (char *prog) exit(1); } -#define TIMESTAMP_SIZE 11 +#define TIMESTAMP_SIZE (sizeof(int)) #define NR_CPUS 256 int main (int argc, char *argv[]) @@ -64,7 +64,7 @@ int main (int argc, char *argv[]) return -1; } if (fread (buf, TIMESTAMP_SIZE, 1, fp[i])) - num[i] = strtoul (buf, NULL, 10); + num[i] = *((int *)buf); else num[i] = 0; i++; @@ -106,7 +106,7 @@ int main (int argc, char *argv[]) } if (fread (buf, TIMESTAMP_SIZE, 1, fp[j])) - num[j] = strtoul (buf, NULL, 10); + num[j] = *((int *)buf); else num[j] = 0; } while (min); -- cgit