1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(main): Add casts to avoid warnings.

This commit is contained in:
Richard M. Stallman 1994-08-01 07:43:30 +00:00
parent 3cfb886e3d
commit ae24c599eb

View File

@ -130,13 +130,14 @@ main ()
for (;;)
{
int rmask = (1 << s) + 1;
if (select (s + 1, &rmask, 0, 0, 0) < 0)
if (select (s + 1, (fd_set *)&rmask, 0, 0, 0) < 0)
perror ("select");
if (rmask & (1 << s)) /* client sends list of filenames */
{
fromlen = sizeof (fromunix);
fromunix.sun_family = AF_UNIX;
infd = accept (s, (struct sockaddr *) &fromunix, &fromlen); /* open socket fd */
infd = accept (s, (struct sockaddr *) &fromunix,
(size_t *) &fromlen);
if (infd < 0)
{
if (errno == EMFILE || errno == ENFILE)