(struct hstorage): Make NAME field a pointer.
authormiles <miles>
Thu, 6 Jun 1996 15:25:55 +0000 (15:25 +0000)
committermiles <miles>
Thu, 6 Jun 1996 15:25:55 +0000 (15:25 +0000)
commit915a08dfb7fc8c659a38ec0653184fec4a363915
treed413f75c16f6ae18c6d351d0ab21f25c82283057
parent429f2248050e754573d08f100346385d0b10d66b
(struct hstorage): Make NAME field a pointer.
(_gethtbyname2):
  Remove ALIAS variable.
  Initialize NAME field of SELF and TARGET to 0.
  Add SELF_NAME_SIZE static variable.
  Add loop to call gethostname until the space we allocated is enough.
  Use malloced strings instead of fixed size buffers.
<stdlib.h>, <unistd.h>: New includes.
resolv/gethnamaddr.c