Initialize ef_type and uid automatically in ef_extend()
New struct emptypedstr to avoid depending on empobj.h there. Remove now superfluous manual initializations elsewhere. This doesn't fix any missing initializations.
This commit is contained in:
parent
d628679a24
commit
6cd3d55c4e
9 changed files with 28 additions and 32 deletions
|
@ -165,11 +165,6 @@ lnd_prewrite(int n, void *ptr)
|
|||
void
|
||||
lnd_init(int n, void *ptr)
|
||||
{
|
||||
struct lndstr *lp = ptr;
|
||||
|
||||
lp->ef_type = EF_LAND;
|
||||
lp->lnd_uid = n;
|
||||
lp->lnd_own = 0;
|
||||
}
|
||||
|
||||
char *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue