(fail): Don't return a value.

(main): Cast uid values for sprintf.
This commit is contained in:
Dave Love 2001-04-05 18:46:47 +00:00
parent 0e4892e24d
commit 23431241d4
2 changed files with 8 additions and 2 deletions

View 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.

View 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);
}
}