Mercurial > hg > xemacs-beta
diff lib-src/gnuserv.c @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 538048ae2ab8 |
children | 929b76928fce |
line wrap: on
line diff
--- a/lib-src/gnuserv.c Mon Aug 13 09:42:28 2007 +0200 +++ b/lib-src/gnuserv.c Mon Aug 13 09:43:35 2007 +0200 @@ -693,12 +693,12 @@ handle_internet_request (int ls) { int s; - int addrlen = sizeof(struct sockaddr_in); + size_t addrlen = sizeof(struct sockaddr_in); struct sockaddr_in peer; /* for peer socket address */ memset((char *)&peer,0,sizeof(struct sockaddr_in)); - if ((s = accept(ls,(struct sockaddr *)&peer,&addrlen)) == -1) + if ((s = accept(ls,(struct sockaddr *)&peer, (void *) &addrlen)) == -1) { perror(progname); fprintf(stderr,"%s: unable to accept\n",progname); @@ -813,12 +813,12 @@ handle_unix_request (int ls) { int s; - int len = sizeof(struct sockaddr_un); + size_t len = sizeof(struct sockaddr_un); struct sockaddr_un server; /* for unix socket address */ server.sun_family = AF_UNIX; - if ((s = accept(ls,(struct sockaddr *)&server,&len)) < 0) + if ((s = accept(ls,(struct sockaddr *)&server, (void *)&len)) < 0) { perror(progname); fprintf(stderr,"%s: unable to accept\n",progname);