[svn-commits] rizzo: trunk r89368 - /trunk/utils/hashtest2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Nov 17 03:54:54 CST 2007


Author: rizzo
Date: Sat Nov 17 03:54:54 2007
New Revision: 89368

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89368
Log:
add a return NULL to a function that is expected to return a value
so compilers that don't understand that this code is NOTREACHED
will not complain (the fault is not much on the compiler but on the
declaration of pthread_exit on certain platforms)
s/certain platform/cygwin/ if you are really curious


Modified:
    trunk/utils/hashtest2.c

Modified: trunk/utils/hashtest2.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/hashtest2.c?view=diff&rev=89368&r1=89367&r2=89368
==============================================================================
--- trunk/utils/hashtest2.c (original)
+++ trunk/utils/hashtest2.c Sat Nov 17 03:54:54 2007
@@ -259,6 +259,7 @@
 	printf("\ntotals..................... lookups=%d/%d, added=%d, removed=%d; traversals=%d\n",
 		   els_found, els_lookedup, els_added, els_removed, els_traversals);
 	pthread_exit(0);
+	return NULL;
 }
 
 static void run_hashtest(int numthr)




More information about the svn-commits mailing list