aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/emacsclient.c12
-rw-r--r--lib-src/ntlib.h12
3 files changed, 17 insertions, 12 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 50184ee58ad..09d139019e8 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12010-07-25 Juanma Barranquero <lekktu@gmail.com>
2
3 * emacsclient.c (getcwd, w32_getenv):
4 * ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
5
12010-07-24 Dan Nicolaescu <dann@ics.uci.edu> 62010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * update-game-score.c (usage): Add NO_RETURN specifier. 8 * update-game-score.c (usage): Add NO_RETURN specifier.
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index cbf988348dd..39b5956741d 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -82,10 +82,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
82 82
83 83
84char *getenv (const char *), *getwd (char *); 84char *getenv (const char *), *getwd (char *);
85char *(getcwd) (); 85char *(getcwd) (char *, int);
86 86
87#ifdef WINDOWSNT 87#ifdef WINDOWSNT
88char *w32_getenv (); 88char *w32_getenv (char *);
89#define egetenv(VAR) w32_getenv(VAR) 89#define egetenv(VAR) w32_getenv(VAR)
90#else 90#else
91#define egetenv(VAR) getenv(VAR) 91#define egetenv(VAR) getenv(VAR)
@@ -402,7 +402,7 @@ w32_set_user_model_id (void)
402 /* On Windows 7 and later, we need to set the user model ID 402 /* On Windows 7 and later, we need to set the user model ID
403 to associate emacsclient launched files with Emacs frames 403 to associate emacsclient launched files with Emacs frames
404 in the UI. */ 404 in the UI. */
405 shell = LoadLibrary("shell32.dll"); 405 shell = LoadLibrary ("shell32.dll");
406 if (shell) 406 if (shell)
407 { 407 {
408 set_user_model 408 set_user_model
@@ -432,7 +432,7 @@ w32_window_app (void)
432 nonconsole apps. Testing for the console title seems to work. */ 432 nonconsole apps. Testing for the console title seems to work. */
433 window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); 433 window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0);
434 if (window_app) 434 if (window_app)
435 InitCommonControls(); 435 InitCommonControls ();
436 } 436 }
437 437
438 return window_app; 438 return window_app;
@@ -483,7 +483,7 @@ ttyname (int fd)
483void 483void
484message (int is_error, char *message, ...) 484message (int is_error, char *message, ...)
485{ 485{
486 char msg [2048]; 486 char msg[2048];
487 va_list args; 487 va_list args;
488 488
489 va_start (args, message); 489 va_start (args, message);
@@ -1470,7 +1470,7 @@ start_daemon_and_retry_set_socket (void)
1470 pid_t w; 1470 pid_t w;
1471 w = waitpid (dpid, &status, WUNTRACED | WCONTINUED); 1471 w = waitpid (dpid, &status, WUNTRACED | WCONTINUED);
1472 1472
1473 if ((w == -1) || !WIFEXITED (status) || WEXITSTATUS(status)) 1473 if ((w == -1) || !WIFEXITED (status) || WEXITSTATUS (status))
1474 { 1474 {
1475 message (TRUE, "Error: Could not start the Emacs daemon\n"); 1475 message (TRUE, "Error: Could not start the Emacs daemon\n");
1476 exit (EXIT_FAILURE); 1476 exit (EXIT_FAILURE);
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index fd51269fdfd..4dd6a32ee32 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -30,14 +30,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30#ifdef sleep 30#ifdef sleep
31#undef sleep 31#undef sleep
32#endif 32#endif
33void sleep(unsigned long seconds); 33void sleep (unsigned long seconds);
34char *getwd (char *dir); 34char *getwd (char *dir);
35int getppid(void); 35int getppid (void);
36char * getlogin (); 36char * getlogin (void);
37char * cuserid (char * s); 37char * cuserid (char * s);
38unsigned getuid (); 38unsigned getuid (void);
39unsigned getegid (); 39unsigned getegid (void);
40unsigned getgid (); 40unsigned getgid (void);
41int setuid (unsigned uid); 41int setuid (unsigned uid);
42int setegid (unsigned gid); 42int setegid (unsigned gid);
43char * getpass (const char * prompt); 43char * getpass (const char * prompt);