summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-12-09 20:09:03 +0000
committerRoland McGrath <roland@gnu.org>1994-12-09 20:09:03 +0000
commit02482c4712ca53620df06f0388d4c33bdd8c3391 (patch)
treea0eb8eee687be191d3ca7c93c58294689aab82e6
parentf74752fc86c42154366e1aa719845b39616b9b32 (diff)
(__stdio_gen_tempname): Cast FD to long int before casting to pointer.
-rw-r--r--sysdeps/posix/tempname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c
index b8eccbb86d..006ca8e65b 100644
--- a/sysdeps/posix/tempname.c
+++ b/sysdeps/posix/tempname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -181,7 +181,7 @@ DEFUN(__stdio_gen_tempname, (dir, pfx, dir_search, lenptr, streamptr),
errno = save;
return NULL;
}
- (*streamptr)->__cookie = (PTR) fd;
+ (*streamptr)->__cookie = (PTR) (long int) fd;
(*streamptr)->__mode.__write = 1;
(*streamptr)->__mode.__read = 1;
(*streamptr)->__mode.__binary = 1;