diff --git a/libraries/libavl/testavl.c b/libraries/libavl/testavl.c
index b76d1ba1d56ab580567a43bd81bede300e7ae61f..6de900c26635324fac580216f39d17eac5308c3f 100644
--- a/libraries/libavl/testavl.c
+++ b/libraries/libavl/testavl.c
@@ -32,7 +32,7 @@ main( int argc, char **argv )
 	while ( fgets( command, sizeof( command ), stdin ) != NULL ) {
 		switch( *command ) {
 		case 'n':	/* new tree */
-			( void ) avl_free( tree, (AVL_FREE) free );
+			( void ) avl_free( tree, free );
 			tree = NULL;
 			break;
 		case 'p':	/* print */