forked from enlightenment/efl
Eina examples: Fixed eina magic example.
Return a value in the "new" function...
This commit is contained in:
parent
b7e8bb556d
commit
acd705fe9f
|
@ -46,6 +46,8 @@ pilot_new(const char *name, const char *callsign)
|
||||||
EINA_MAGIC_SET(&ptr->base, BASETYPE_MAGIC);
|
EINA_MAGIC_SET(&ptr->base, BASETYPE_MAGIC);
|
||||||
ptr->base.name = strdup(name);
|
ptr->base.name = strdup(name);
|
||||||
ptr->callsign = strdup(callsign);
|
ptr->callsign = strdup(callsign);
|
||||||
|
|
||||||
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue