From: Toni Nikkanen Date: Sat, 7 Mar 2009 18:20:45 +0000 (+0200) Subject: Works a bit more X-Git-Url: http://git.maemo.org/git/?p=erwise;a=commitdiff_plain;h=8fd671869c1681923937fec0c6701c0274eecc5b Works a bit more --- diff --git a/Cl/WWWLibrary/HTTCP.c b/Cl/WWWLibrary/HTTCP.c index 40a43e8..448c888 100644 --- a/Cl/WWWLibrary/HTTCP.c +++ b/Cl/WWWLibrary/HTTCP.c @@ -221,15 +221,12 @@ PUBLIC int HTParseInet(sin, str) sin->sin_addr.s_addr = inet_addr(host); /* See arpa/inet.h */ } else { /* Alphanumeric node name: */ -#ifdef MVS /* Oustanding problem with crsh in MVS gethostbyname */ - if(TRACE)printf("HTTCP: Calling gethostbyname(%s)\n", host); -#endif - phost=gethostbyname(host); /* See netdb.h */ -#ifdef MVS - if(TRACE)printf("HTTCP: gethostbyname() returned %d\n", phost); -#endif + printf("HTTCP: Calling gethostbyname2(\"%s\",AF_INET)\n", host); + phost=gethostbyname2(host,AF_INET); /* See netdb.h */ + printf("HTTCP: gethostbyname() returned %d\n", phost); + printf("HTTCP: h_errno %d\n",h_errno); if (!phost) { - if (TRACE) printf( + printf( "HTTPAccess: Can't find internet node name `%s'.\n",host); return -1; /* Fail? */ } @@ -278,7 +275,7 @@ PRIVATE void get_host_details() #ifdef NEED_HOST_ADDRESS /* no -- needs name server! */ phost=gethostbyname(name); /* See netdb.h */ if (!phost) { - if (TRACE) printf( + printf( "TCP: Can't find my own internet node address for `%s'!!\n", name); return; /* Fail! */ diff --git a/Cl/WWWLibrary/HTUtils.h b/Cl/WWWLibrary/HTUtils.h index fb558f8..7d92c1d 100644 --- a/Cl/WWWLibrary/HTUtils.h +++ b/Cl/WWWLibrary/HTUtils.h @@ -140,7 +140,7 @@ typedef char BOOLEAN; /* Logical value */ #define NO (BOOLEAN)0 #endif -#define TCP_PORT 2784 /* 80 Allocated by Jon Postel/ISI 24-Jan-92 */ +#define TCP_PORT 80 /* 80 Allocated by Jon Postel/ISI 24-Jan-92 */ /* Is character c white space? */ diff --git a/Ui/UiMisc.c b/Ui/UiMisc.c index 2885492..47b388b 100644 --- a/Ui/UiMisc.c +++ b/Ui/UiMisc.c @@ -509,7 +509,7 @@ String resource; Arg args[1]; XtSetArg(args[0], resource, (XtArgVal) 0); - XtGetValues(wdg, args, 1); +/* XtGetValues(wdg, args, 1); Toni */ return args[0].value; }