[Xbubble-commits] xbubble/src utils.c,1.2,1.3 utils.h,1.2,1.3

Martin Quinson xbubble-devel@lists.alioth.debian.org
Wed, 27 Apr 2005 15:40:39 +0000


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

Modified Files:
	utils.c utils.h 
Log Message:
Stupid me. I didn't even check whether it compiles before commiting. Good that I'm the only one to get spammed on this list ;)

Index: utils.h
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/utils.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- utils.h	27 Apr 2005 15:28:16 -0000	1.2
+++ utils.h	27 Apr 2005 15:40:37 -0000	1.3
@@ -28,6 +28,8 @@
 
 Set set_new( int max_size );
 void set_free( Set s );
+void set_ref( Set s );
+void set_unref( Set s );
 void set_empty( Set s );
 void set_copy( Set source, Set dest );
 void set_add( Set s, void * p );

Index: utils.c
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/utils.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- utils.c	27 Apr 2005 15:28:15 -0000	1.2
+++ utils.c	27 Apr 2005 15:40:37 -0000	1.3
@@ -91,11 +91,11 @@
 }
 
 void set_ref(Set set) {
-  s->ref++;
+  set->ref++;
 }
 
 void set_unref(Set set) {
-  if (!--s->ref) {
+  if (!--set->ref) {
      set_free(set);
   }
 }