diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 88fd797d024..2db9dd67294 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-04-05 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * emacsclient.c (fail): Don't return a value. | ||
| 4 | (main): Cast uid values for sprintf. | ||
| 5 | |||
| 1 | 2001-04-03 Gerd Moellmann <gerd@gnu.org> | 6 | 2001-04-03 Gerd Moellmann <gerd@gnu.org> |
| 2 | 7 | ||
| 3 | * emacsclient.c (fail, main): Don't use implicit int return type. | 8 | * emacsclient.c (fail, main): Don't use implicit int return type. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 10f95decd80..f16b126b751 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -188,6 +188,7 @@ fail (argc, argv) | |||
| 188 | { | 188 | { |
| 189 | int i = optind -1 ; | 189 | int i = optind -1 ; |
| 190 | execvp (alternate_editor, argv + i); | 190 | execvp (alternate_editor, argv + i); |
| 191 | return; | ||
| 191 | } | 192 | } |
| 192 | else | 193 | else |
| 193 | { | 194 | { |
| @@ -305,7 +306,7 @@ main (argc, argv) | |||
| 305 | { | 306 | { |
| 306 | int sock_status = 0; | 307 | int sock_status = 0; |
| 307 | 308 | ||
| 308 | sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); | 309 | sprintf (server.sun_path, "/tmp/esrv%d-%s", (int) geteuid (), system_name); |
| 309 | 310 | ||
| 310 | /* See if the socket exists, and if it's owned by us. */ | 311 | /* See if the socket exists, and if it's owned by us. */ |
| 311 | sock_status = socket_status (server.sun_path); | 312 | sock_status = socket_status (server.sun_path); |
| @@ -327,7 +328,7 @@ main (argc, argv) | |||
| 327 | { | 328 | { |
| 328 | /* We're running under su, apparently. */ | 329 | /* We're running under su, apparently. */ |
| 329 | sprintf (server.sun_path, "/tmp/esrv%d-%s", | 330 | sprintf (server.sun_path, "/tmp/esrv%d-%s", |
| 330 | pw->pw_uid, system_name); | 331 | (int) pw->pw_uid, system_name); |
| 331 | sock_status = socket_status (server.sun_path); | 332 | sock_status = socket_status (server.sun_path); |
| 332 | } | 333 | } |
| 333 | } | 334 | } |