fixed warning and minor portability fix
Modified: trunk/reactos/apps/utils/net/finger/net.c
_____
Modified: trunk/reactos/apps/utils/net/finger/net.c
--- trunk/reactos/apps/utils/net/finger/net.c 2005-04-17 19:32:24 UTC
(rev 14654)
+++ trunk/reactos/apps/utils/net/finger/net.c 2005-04-17 19:33:50 UTC
(rev 14655)
@@ -56,14 +56,14 @@
struct hostent *hp, def;
struct servent *sp;
struct sockaddr_in sin;
- int s;
+ SOCKET s;
char *alist[1], *host;
/* If this is a local request */
if (!(host = rindex(name, '@')))
return;
- *host++ = NULL;
+ *host++ = '\0';
if (isdigit(*host) && (defaddr.s_addr = inet_addr(host)) != -1)
{
def.h_name = host;
def.h_addr_list = alist;
@@ -84,7 +84,7 @@
sin.sin_family = hp->h_addrtype;
bcopy(hp->h_addr, (char *)&sin.sin_addr, hp->h_length);
sin.sin_port = sp->s_port;
- if ((s = socket(hp->h_addrtype, SOCK_STREAM, 0)) < 0) {
+ if ((s = socket(hp->h_addrtype, SOCK_STREAM, 0)) ==
INVALID_SOCKET) {
perror("finger: socket");
return;
}
Show replies by date