Commit ae24c599 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(main): Add casts to avoid warnings.

parent 3cfb886e
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment