Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Declare dlerror()'s return value __aconst.



details:   https://anonhg.NetBSD.org/src/rev/c9dd641ec887
branches:  trunk
changeset: 473084:c9dd641ec887
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed May 19 14:50:49 1999 +0000

description:
Declare dlerror()'s return value __aconst.

diffstat:

 include/dlfcn.h              |  4 ++--
 lib/csu/common_aout/common.c |  4 ++--
 lib/csu/common_elf/common.c  |  4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r ced798c1d690 -r c9dd641ec887 include/dlfcn.h
--- a/include/dlfcn.h   Wed May 19 14:47:12 1999 +0000
+++ b/include/dlfcn.h   Wed May 19 14:50:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dlfcn.h,v 1.9 1998/09/05 13:11:07 pk Exp $     */
+/*     $NetBSD: dlfcn.h,v 1.10 1999/05/19 14:50:49 kleink Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
 extern int     dladdr __P((void *, Dl_info *));
 extern int     dlctl __P((void *, int, void *));
 #endif
-extern char    *dlerror __P((void));
+extern __aconst char *dlerror __P((void));
 __END_DECLS
 
 /* Values for dlopen `mode'. */
diff -r ced798c1d690 -r c9dd641ec887 lib/csu/common_aout/common.c
--- a/lib/csu/common_aout/common.c      Wed May 19 14:47:12 1999 +0000
+++ b/lib/csu/common_aout/common.c      Wed May 19 14:50:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.14 1999/01/28 23:59:49 fvdl Exp $ */
+/*     $NetBSD: common.c,v 1.15 1999/05/19 14:50:50 kleink Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -206,7 +206,7 @@
        return ((*ld_entry)->dlctl)(fd, cmd, arg);
 }
 
-char *
+__aconst char *
 dlerror()
 {
        int     error;
diff -r ced798c1d690 -r c9dd641ec887 lib/csu/common_elf/common.c
--- a/lib/csu/common_elf/common.c       Wed May 19 14:47:12 1999 +0000
+++ b/lib/csu/common_elf/common.c       Wed May 19 14:50:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.2 1999/05/19 14:47:12 kleink Exp $        */
+/*     $NetBSD: common.c,v 1.3 1999/05/19 14:50:50 kleink Exp $        */
 
 /*
  * Copyright (c) 1995 Christopher G. Demetriou
@@ -116,7 +116,7 @@
 }
 #endif
 
-char *
+__aconst char *
 dlerror()
 {
 



Home | Main Index | Thread Index | Old Index