]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Add casts to avoid warnings.
authorRichard M. Stallman <rms@gnu.org>
Mon, 1 Aug 1994 07:43:30 +0000 (07:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 1 Aug 1994 07:43:30 +0000 (07:43 +0000)
lib-src/emacsserver.c

index 6a6edf6050b3cdfc4ce15d7cebaf09bbe24633b2..fe95381c8f94a718e4315459b6e0a5afbcaaf39d 100644 (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)