This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
__readonly_area...
- From: "Alfred M. Szmidt" <ams at kemisten dot nu>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 19 Oct 2004 22:50:30 +0200
- Subject: __readonly_area...
Fix for a silly typo (which makes glibc not compile for GNU/Hurd), and
moves the comment to be above the function.
2004-10-19 Alfred M. Szmidt <ams@gnu.org>
* sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
(__readonly_area): ... this.
Index: sysdeps/generic/readonly-area.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/generic/readonly-area.c,v
retrieving revision 1.1
diff -u -p -r1.1 readonly-area.c
--- sysdeps/generic/readonly-area.c 18 Oct 2004 04:17:12 -0000 1.1
+++ sysdeps/generic/readonly-area.c 19 Oct 2004 20:23:31 -0000
@@ -16,13 +16,13 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#include <stdlib.h>
+
/* Return 1 if the whole area PTR .. PTR+SIZE is not writable.
Return -1 if it is writable. */
-#include <stdlib.h>
-
int
-__readonly_str (const void *ptr, size_t size)
+__readonly_area (const void *ptr, size_t size)
{
/* The conservative answer is that all strings are writable. */
return -1;