diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-10-13 15:41:02 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-10-13 15:41:02 (GMT) |
commit | 58a685ac811293349eed92b6d650392c1a18667e (patch) | |
tree | 59e191f45cc0525397d48c340d67e0e649e95039 | |
parent | aa88b36b52e8f0d71720df432ee363ec754aa9ca (diff) | |
download | hdf5-58a685ac811293349eed92b6d650392c1a18667e.zip hdf5-58a685ac811293349eed92b6d650392c1a18667e.tar.gz hdf5-58a685ac811293349eed92b6d650392c1a18667e.tar.bz2 |
[svn-r1743] fixed some compilation errors on unix
-rw-r--r-- | test/external.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/external.c b/test/external.c index 52eb4af..6ccc8b0 100644 --- a/test/external.c +++ b/test/external.c @@ -582,7 +582,7 @@ test_2 (hid_t fapl) hid_t hs_space; /*hyperslab data space */ hssize_t hs_start = 30; /*hyperslab starting offset */ hsize_t hs_count = 25; /*hyperslab size */ - int temparray[10] = {0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f}; + int temparray[10] = {0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f}; TESTING("read external dataset"); @@ -594,7 +594,8 @@ test_2 (hid_t fapl) sprintf (filename, "extern_%lua.raw", (unsigned long)i+1); fd = HDopen (filename, O_RDWR|O_CREAT|O_TRUNC, 0666); assert (fd>=0); -// n = lseek (fd, (off_t)(i*10), SEEK_SET); +/* n = lseek (fd, (off_t)(i*10), SEEK_SET); +*/ n = write(fd,temparray,i*10); assert (n>=0 && (size_t)n==i*10); n = write (fd, part, sizeof(part)); @@ -708,7 +709,7 @@ test_3 (hid_t fapl) hssize_t hs_start=100; /*hyperslab starting offset */ hsize_t hs_count=100; /*hyperslab size */ char filename[1024]; /*file name */ - int temparray[10] = {0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f,0x0f0f0f0f0f}; + int temparray[10] = {0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f,0x0f0f0f0f}; TESTING("write external dataset"); |