(fail): Don't return a value.
authorDave Love <fx@gnu.org>
Thu, 5 Apr 2001 18:46:47 +0000 (18:46 +0000)
committerDave Love <fx@gnu.org>
Thu, 5 Apr 2001 18:46:47 +0000 (18:46 +0000)
(main): Cast uid values for sprintf.

lib-src/ChangeLog
lib-src/emacsclient.c

index 88fd797..2db9dd6 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-05  Dave Love  <fx@gnu.org>
+
+       * emacsclient.c (fail): Don't return a value.
+       (main): Cast uid values for sprintf. 
+
 2001-04-03  Gerd Moellmann  <gerd@gnu.org>
 
        * emacsclient.c (fail, main): Don't use implicit int return type.
index 10f95de..f16b126 100644 (file)
@@ -188,6 +188,7 @@ fail (argc, argv)
     {
       int i = optind -1 ;
       execvp (alternate_editor, argv + i);
+      return;
     }
   else
     {
@@ -305,7 +306,7 @@ main (argc, argv)
   {
     int sock_status = 0;
 
-    sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+    sprintf (server.sun_path, "/tmp/esrv%d-%s", (int) geteuid (), system_name);
 
     /* See if the socket exists, and if it's owned by us. */
     sock_status = socket_status (server.sun_path);
@@ -327,7 +328,7 @@ main (argc, argv)
              {
                /* We're running under su, apparently. */
                sprintf (server.sun_path, "/tmp/esrv%d-%s",
-                        pw->pw_uid, system_name);
+                        (int) pw->pw_uid, system_name);
                sock_status = socket_status (server.sun_path);
              }
          }