Mercurial > emacs
comparison lib-src/emacsserver.c @ 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 | a3e7758ab661 |
children | 14add4c935a4 |
comparison
equal
deleted
inserted
replaced
39721:e33afc45e39d | 39722:a94d9387d8cd |
---|---|
265 free (system_name); | 265 free (system_name); |
266 system_name_length *= 2; | 266 system_name_length *= 2; |
267 } | 267 } |
268 | 268 |
269 #ifndef SERVER_HOME_DIR | 269 #ifndef SERVER_HOME_DIR |
270 sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); | 270 sprintf (server.sun_path, "/tmp/esrv%d-%s", (int) geteuid (), system_name); |
271 | 271 |
272 if (unlink (server.sun_path) == -1 && errno != ENOENT) | 272 if (unlink (server.sun_path) == -1 && errno != ENOENT) |
273 { | 273 { |
274 perror_1 ("unlink"); | 274 perror_1 ("unlink"); |
275 exit (1); | 275 exit (1); |