> @@ -428,6 +439,12 @@ hashinit(u_int elements, enum hashtype h
> }
> *hashmask = hashsize - 1;
> return (p);
> +
> +error:
> + if (!(mflags & M_CANFAIL))
> + panic("hashinit: %s", msg);
> +
> + return NULL;
> }
if (mflags & M_CANFAIL)
return NULL;
panic(...);
Looks a bit more readable to me.
-- Jachym