Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleaner initialization.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 4 Aug 2007 21:25:14 +0000 (21:25 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 4 Aug 2007 21:25:14 +0000 (21:25 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3949 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/swag.c

index aa46230..873724b 100644 (file)
@@ -29,10 +29,7 @@ xbt_swag_t xbt_swag_new(size_t offset)
 {
   xbt_swag_t swag = xbt_new0(s_xbt_swag_t, 1);
 
-  swag->tail = NULL;
-  swag->head = NULL;
-  swag->offset = offset;
-  swag->count = 0;
+  xbt_swag_init(swag, offset);
 
   return swag;
 }