changeset 39722:a94d9387d8cd

(main): Cast geteuid in sprintf to int. From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 09 Oct 2001 10:16:26 +0000
parents e33afc45e39d
children 42510bd54993
files lib-src/emacsserver.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsserver.c	Tue Oct 09 10:13:44 2001 +0000
+++ b/lib-src/emacsserver.c	Tue Oct 09 10:16:26 2001 +0000
@@ -267,7 +267,7 @@
     }
 
 #ifndef SERVER_HOME_DIR
-  sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+  sprintf (server.sun_path, "/tmp/esrv%d-%s", (int) geteuid (), system_name);
 
   if (unlink (server.sun_path) == -1 && errno != ENOENT)
     {