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:
parent
95aec69f90
commit
2cf377147e
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue