changeset 37225:ab2a21b7b7ed

(fail): Don't return a value. (main): Cast uid values for sprintf.
author Dave Love <fx@gnu.org>
date Thu, 05 Apr 2001 18:46:26 +0000
parents 2176eb6ab4b3
children aac92cb5ba96
files lib-src/emacsclient.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Thu Apr 05 16:16:28 2001 +0000
+++ b/lib-src/emacsclient.c	Thu Apr 05 18:46:26 2001 +0000
@@ -188,6 +188,7 @@
     {
       int i = optind -1 ;
       execvp (alternate_editor, argv + i);
+      return;
     }
   else
     {
@@ -305,7 +306,7 @@
   {
     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 @@
 	      {
 		/* 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);
 	      }
 	  }