1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

* net_db.c (s_scm_inet_makeaddr): Use SCM_NUM2ULONG since that's

the way guile-1.3.4 worked, but #if 0 out the version using
SCM_VALIDATE_INUM_COPY for stricter testing.
This commit is contained in:
Greg J. Badros 2000-01-12 08:07:36 +00:00
parent 95aec69f90
commit 2cf377147e

View file

@ -175,8 +175,13 @@ with the local-address-within-network number @var{lna}.
unsigned long netnum;
unsigned long lnanum;
#ifdef 0 /* GJB:FIXME:: */
SCM_VALIDATE_INUM_COPY (1,net,netnum);
SCM_VALIDATE_INUM_COPY (2,lna,lnanum);
#else
netnum = SCM_NUM2ULONG (1, net);
lnanum = SCM_NUM2ULONG (2, lna);
#endif
addr = inet_makeaddr (netnum, lnanum);
return scm_ulong2num (ntohl (addr.s_addr));
}