aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ntlib.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-07-22 20:38:22 +0300
committerEli Zaretskii2016-07-22 20:38:22 +0300
commitd0e1774a5850b924915bde5abefe791ce18d84a2 (patch)
treeb9f3d3b80f5338e784a952228c12086fc7358eb7 /lib-src/ntlib.c
parentad90397c599034a5f2a977baf9d04802f986eee2 (diff)
downloademacs-d0e1774a5850b924915bde5abefe791ce18d84a2.tar.gz
emacs-d0e1774a5850b924915bde5abefe791ce18d84a2.zip
Fix compilation warning in the MinGW build
* nt/inc/ms-w32.h: Include stdint.h. (_execvp, execve): Provide prototypes. * lib-src/emacsclient.c [WINDOWSNT]: Remove prototype for execvp, it is now in nt/inc/ms-w32.h. * lib-src/ntlib.c (getppid): Avoid compiler warnings due to format mismatch. (sys_ctime): Remove, not used.
Diffstat (limited to 'lib-src/ntlib.c')
-rw-r--r--lib-src/ntlib.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index 2ace218f823..2ac021936ae 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -98,7 +98,7 @@ getppid (void)
98 getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi (ppid)); 98 getppid_parent = OpenProcess (SYNCHRONIZE, FALSE, atoi (ppid));
99 if (!getppid_parent) 99 if (!getppid_parent)
100 { 100 {
101 printf ("Failed to open handle to parent process: %d\n", 101 printf ("Failed to open handle to parent process: %lu\n",
102 GetLastError ()); 102 GetLastError ());
103 exit (1); 103 exit (1);
104 } 104 }
@@ -115,7 +115,7 @@ getppid (void)
115 return 1; 115 return 1;
116 case WAIT_FAILED: 116 case WAIT_FAILED:
117 default: 117 default:
118 printf ("Checking parent status failed: %d\n", GetLastError ()); 118 printf ("Checking parent status failed: %lu\n", GetLastError ());
119 exit (1); 119 exit (1);
120 } 120 }
121} 121}
@@ -258,16 +258,6 @@ fchown (int fd, unsigned uid, unsigned gid)
258 return 0; 258 return 0;
259} 259}
260 260
261/* Place a wrapper around the MSVC version of ctime. It returns NULL
262 on network directories, so we handle that case here.
263 (Ulrich Leodolter, 1/11/95). */
264char *
265sys_ctime (const time_t *t)
266{
267 char *str = (char *) ctime (t);
268 return (str ? str : "Sun Jan 01 00:00:00 1970");
269}
270
271FILE * 261FILE *
272sys_fopen (const char * path, const char * mode) 262sys_fopen (const char * path, const char * mode)
273{ 263{