about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-20 17:56:16 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-20 17:56:16 +0000
commitdfae7a592088dcdcee1bd592076e7416afd5a31b (patch)
treee00fa83f64929dd5baf6398dfacca0c4d68c8c2f /sysdeps
parent867506f3b0f0c23128d601a8812de023078c88b4 (diff)
downloadglibc-dfae7a592088dcdcee1bd592076e7416afd5a31b.tar.gz
glibc-dfae7a592088dcdcee1bd592076e7416afd5a31b.tar.xz
glibc-dfae7a592088dcdcee1bd592076e7416afd5a31b.zip
Update.
1998-03-20  Ulrich Drepper  <drepper@cygnus.com>

	* glibcbug.in: Use mktemp to generate unique file name for
	temporary files.

	* sysdeps/unix/grantpt.c (grantpt): Use __ptsname_r and not
	ptsname_r.  Use cast for execve call.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/grantpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c
index 6ef8d4912b..65a0d98a73 100644
--- a/sysdeps/unix/grantpt.c
+++ b/sysdeps/unix/grantpt.c
@@ -47,7 +47,7 @@ grantpt (fd)
   char namebuf[PTYNAMELEN];
 
   /* Some systems do it for us.  */
-  if (ptsname_r (fd, namebuf, PTYNAMELEN) == NULL)
+  if (__ptsname_r (fd, namebuf, PTYNAMELEN) == NULL)
     return -1;
   if (stat (namebuf, &st))
     return -1;
@@ -71,7 +71,7 @@ grantpt (fd)
 	if (dup2 (fd, PTY_FD) == -1)
 	  _exit (FAIL_EBADF);
 
-      execve (helper, argv, 0);
+      execve (helper, (char *const *) argv, 0);
       _exit (FAIL_EXEC);
     }
   else