mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
(main): Add casts to avoid warnings.
This commit is contained in:
parent
3cfb886e3d
commit
ae24c599eb
@ -130,13 +130,14 @@ main ()
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
int rmask = (1 << s) + 1;
|
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");
|
perror ("select");
|
||||||
if (rmask & (1 << s)) /* client sends list of filenames */
|
if (rmask & (1 << s)) /* client sends list of filenames */
|
||||||
{
|
{
|
||||||
fromlen = sizeof (fromunix);
|
fromlen = sizeof (fromunix);
|
||||||
fromunix.sun_family = AF_UNIX;
|
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 (infd < 0)
|
||||||
{
|
{
|
||||||
if (errno == EMFILE || errno == ENFILE)
|
if (errno == EMFILE || errno == ENFILE)
|
||||||
|
Loading…
Reference in New Issue
Block a user