diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-22 09:55:16 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-22 09:55:16 +0200 | 
| commit | c6feab5f512dc266f4d5eeda45b370ee8af5922c (patch) | |
| tree | bf2cecf162d4adbdee864ee44c4eab8936edbbd2 /src | |
| parent | b8549e858da5300cff4cc9fda7162692346612b1 (diff) | |
| download | edoors-c6feab5f512dc266f4d5eeda45b370ee8af5922c.zip edoors-c6feab5f512dc266f4d5eeda45b370ee8af5922c.tar.gz  | |
eiotas_spin_add: uses INIT_IOTA and relies on eiotas_iota_init to check name parameter
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/eiotas_spin.c | 9 | 
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/eiotas_spin.c b/src/lib/eiotas_spin.c index 9080dd4..b10a6a3 100644 --- a/src/lib/eiotas_spin.c +++ b/src/lib/eiotas_spin.c @@ -28,14 +28,7 @@ EAPI Eiotas_Spin* eiotas_spin_add(const char* name, unsigned int step)  {      BUILD_INSTANCE(Eiotas_Spin,spin); -    if(name==NULL) { -        ERR("name can't be NULL"); -        return NULL; -    } - -    if(eiotas_iota_init(&spin->room.iota,name,NULL,EIOTAS_TYPE_SPIN)) { -        return NULL; -    } +    INIT_IOTA(&spin->room.iota,name,NULL,EIOTAS_TYPE_SPIN);      spin->room.links = NULL;    /* not used */      spin->room.children = eina_hash_stringshared_new((Eina_Free_Cb)&eiotas_iota_free);  | 
