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

* net_db.c (scm_resolv_error): Cast result from hstrerror.

This commit is contained in:
Mikael Djurfeldt 2000-01-18 14:13:00 +00:00
parent e7a96050f2
commit d9b6c17032

View file

@ -87,9 +87,8 @@ SCM_DEFINE (scm_inet_aton, "inet-aton", 1, 0, 0,
"Converts a string containing an Internet host address in the traditional\n"
"dotted decimal notation into an integer.\n\n"
"@smalllisp\n"
"(inet-aton "127.0.0.1") @result{} 2130706433
@end smalllisp")
"(inet-aton \"127.0.0.1\") @result{} 2130706433\n\n"
"@end smalllisp")
#define FUNC_NAME s_scm_inet_aton
{
struct in_addr soka;
@ -109,8 +108,8 @@ SCM_DEFINE (scm_inet_ntoa, "inet-ntoa", 1, 0, 0,
"Converts an integer Internet host address into a string with the\n"
"traditional dotted decimal representation.\n\n"
"@smalllisp\n"
"(inet-ntoa 2130706433) @result{} "127.0.0.1"
@end smalllisp")
"(inet-ntoa 2130706433) @result{} \"127.0.0.1\""
"@end smalllisp")
#define FUNC_NAME s_scm_inet_ntoa
{
struct in_addr addr;
@ -224,7 +223,7 @@ static void scm_resolv_error (const char *subr, SCM bad_value)
}
#ifdef HAVE_HSTRERROR
errmsg = hstrerror (h_errno);
errmsg = (const char *) hstrerror (h_errno);
#endif
scm_error (key, subr, errmsg, scm_cons (bad_value, SCM_EOL), SCM_EOL);
}