diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-13 13:15:49 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-13 13:15:49 (GMT) |
commit | 8e391ad35a1ede1ac046f05710297aa40986642b (patch) | |
tree | 247faeeacb9925beb90b6b8c10f0d875f93ed155 /test | |
parent | c3a1173026916e25a5a44f1d4255b889ccbaeb2b (diff) | |
download | hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.zip hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.tar.gz hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.tar.bz2 |
[svn-r6269] Purpose:
Code cleanup
Description:
Various code cleanups to allow the development branch to be compiled with
a C++ compiler (i.e. CC=g++ )
Platforms tested:
Tested h5committest {arabica (fortran), eirene (fortran, C++)
modi4 (parallel, fortran)}
FreeBSD 4.7 (sleipnir) C++
Diffstat (limited to 'test')
-rw-r--r-- | test/ttbbt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ttbbt.c b/test/ttbbt.c index 6861afa..bef7db2 100644 --- a/test/ttbbt.c +++ b/test/ttbbt.c @@ -42,7 +42,7 @@ #define RandInt(a,b) ((rand()%(((b)-(a))+1))+(a)) -int tcompare (void * k1, void * k2, int cmparg); +int tcompare (const void * k1, const void * k2, int cmparg); static void swap_arr(int *arr, int a, int b) { @@ -57,11 +57,11 @@ static void swap_arr(int *arr, int a, int b) } /* end swap_arr() */ int -tcompare(void * k1, void * k2, int cmparg) +tcompare(const void * k1, const void * k2, int cmparg) { /* shut compiler up */ cmparg=cmparg; - return ((int) ((*(int *) k1) - (*(int *) k2))); + return ((int) ((*(const int *) k1) - (*(const int *) k2))); } void |