[Xbubble-commits] xbubble/src path_init.c,1.1,1.2

Martin Quinson xbubble-devel@lists.alioth.debian.org
Wed, 27 Apr 2005 14:35:32 +0000


Update of /cvsroot/xbubble/xbubble/src
In directory haydn:/tmp/cvs-serv26576

Modified Files:
	path_init.c 
Log Message:
declare static what should be

Index: path_init.c
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/path_init.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- path_init.c	5 Dec 2004 20:41:00 -0000	1.1
+++ path_init.c	27 Apr 2005 14:35:29 -0000	1.2
@@ -92,7 +92,7 @@
  * Helping function of cell_path_init() to qsort() between the different possible 
  * target and get the closer one (which will be kept)
  */
-int possible_target_cmp(const void *a, const void *b) { /* used to qsort */
+static int possible_target_cmp(const void *a, const void *b) { /* used to qsort */
   return ((possible_target_t*)a)->dist < ((possible_target_t*)b)->dist ? -1 :
         (((possible_target_t*)a)->dist > ((possible_target_t*)b)->dist ? 1 : 0);
 }
@@ -115,7 +115,7 @@
  * 
  * Computes the caches of trajectories path
  */
-void path_init( void ) {
+static void path_init( void ) {
   int angle, i, ceiling,parity;
   double cdist= COLLISION_DIST*COLLISION_DIST; /* square of the collision distance */
   CellArray ca;