diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-11-29 00:04:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-11-29 00:04:54 +0000 |
commit | 20bb288327254c60dcf7f28ad3ea22c48cffcc58 (patch) | |
tree | 9d317f8044d64112c5112ef088688f366864726e | |
parent | 5eefad82e96d213f69e216857ad638dab981f705 (diff) | |
download | glibc-20bb288327254c60dcf7f28ad3ea22c48cffcc58.zip glibc-20bb288327254c60dcf7f28ad3ea22c48cffcc58.tar.gz glibc-20bb288327254c60dcf7f28ad3ea22c48cffcc58.tar.bz2 |
Update.
* dlfcn/defaultmod1.c: Add prototypes to avoid warnings.
* dlfcn/defaultmod2.c: Likewise.
* dlfcn/dlopen.c: Likewise.
* dlfcn/dlopenold.c: Likewise.
* dlfcn/failtestmod.c: Likewise.
* dlfcn/glreflib1.c: Likewise.
* dlfcn/glreflib2.c: Likewise.
* dlfcn/eval.c: Likewise. Add attributes.
* ctype/ctype-extn.c: Define isblank and not __isblank.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | ctype/ctype-extn.c | 8 | ||||
-rw-r--r-- | dlfcn/defaultmod1.c | 2 | ||||
-rw-r--r-- | dlfcn/defaultmod2.c | 3 | ||||
-rw-r--r-- | dlfcn/dlopen.c | 1 | ||||
-rw-r--r-- | dlfcn/dlopenold.c | 1 | ||||
-rw-r--r-- | dlfcn/eval.c | 4 | ||||
-rw-r--r-- | dlfcn/failtestmod.c | 1 | ||||
-rw-r--r-- | dlfcn/glreflib1.c | 1 | ||||
-rw-r--r-- | dlfcn/glreflib2.c | 1 |
10 files changed, 28 insertions, 5 deletions
@@ -1,5 +1,16 @@ 2000-11-28 Ulrich Drepper <drepper@redhat.com> + * dlfcn/defaultmod1.c: Add prototypes to avoid warnings. + * dlfcn/defaultmod2.c: Likewise. + * dlfcn/dlopen.c: Likewise. + * dlfcn/dlopenold.c: Likewise. + * dlfcn/failtestmod.c: Likewise. + * dlfcn/glreflib1.c: Likewise. + * dlfcn/glreflib2.c: Likewise. + * dlfcn/eval.c: Likewise. Add attributes. + + * ctype/ctype-extn.c: Define isblank and not __isblank. + * time/strftime.c: Add const where necessary to avoid warnings. * time/strptime.c (strptime_internal): Add casts to avoid warnings. diff --git a/ctype/ctype-extn.c b/ctype/ctype-extn.c index cfc8b87..2177df0 100644 --- a/ctype/ctype-extn.c +++ b/ctype/ctype-extn.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1997, 1999, 2000 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 @@ -19,14 +19,14 @@ #define __NO_CTYPE #include <ctype.h> -/* Real function versions of the non-ANSI ctype functions. */ +/* Real function versions of the non-ANSI ctype functions. isblank is + now in ISO C99 but we leave it here. */ int -__isblank (int c) +isblank (int c) { return __isctype (c, _ISblank); } -weak_alias (__isblank, isblank) int _tolower (int c) diff --git a/dlfcn/defaultmod1.c b/dlfcn/defaultmod1.c index 2c26e38..9f330b7 100644 --- a/dlfcn/defaultmod1.c +++ b/dlfcn/defaultmod1.c @@ -1,6 +1,7 @@ #include <dlfcn.h> #include <stdio.h> +extern int found_in_mod1 (void); int found_in_mod1 (void) { @@ -8,6 +9,7 @@ found_in_mod1 (void) } +extern int test_in_mod1 (void *mainp); int test_in_mod1 (void *mainp) { diff --git a/dlfcn/defaultmod2.c b/dlfcn/defaultmod2.c index 4cacced..c8615e2 100644 --- a/dlfcn/defaultmod2.c +++ b/dlfcn/defaultmod2.c @@ -1,12 +1,14 @@ #include <dlfcn.h> #include <stdio.h> +extern int found_in_mod1 (void); int found_in_mod1 (void) { return 1; } +extern int found_in_mod2 (void); int found_in_mod2 (void) { @@ -14,6 +16,7 @@ found_in_mod2 (void) } +extern int test_in_mod2 (void *mainp); int test_in_mod2 (void *mainp) { diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c index 793891e..0891ca5 100644 --- a/dlfcn/dlopen.c +++ b/dlfcn/dlopen.c @@ -41,6 +41,7 @@ dlopen_doit (void *a) } +extern void *__dlopen_check (const char *file, int mode); void * __dlopen_check (const char *file, int mode) { diff --git a/dlfcn/dlopenold.c b/dlfcn/dlopenold.c index 0d6cea9..83ec801 100644 --- a/dlfcn/dlopenold.c +++ b/dlfcn/dlopenold.c @@ -46,6 +46,7 @@ dlopen_doit (void *a) args->caller); } +extern void *__dlopen_nocheck (const char *file, int mode); void * __dlopen_nocheck (const char *file, int mode) { diff --git a/dlfcn/eval.c b/dlfcn/eval.c index ce452b7..1f9421d 100644 --- a/dlfcn/eval.c +++ b/dlfcn/eval.c @@ -1,5 +1,5 @@ /* You don't really want to know what this hack is for. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 2000 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 @@ -122,7 +122,9 @@ eval (char **stringp) } +extern void _start (void) __attribute__ ((noreturn)); void +__attribute__ ((noreturn)) _start (void) { char *buf = NULL; diff --git a/dlfcn/failtestmod.c b/dlfcn/failtestmod.c index 595da4d..a03f90b 100644 --- a/dlfcn/failtestmod.c +++ b/dlfcn/failtestmod.c @@ -2,6 +2,7 @@ #include <stdio.h> +extern void constr (void) __attribute__ ((__constructor__)); void __attribute__ ((__constructor__)) constr (void) diff --git a/dlfcn/glreflib1.c b/dlfcn/glreflib1.c index 224ff5b..d8d4f4a 100644 --- a/dlfcn/glreflib1.c +++ b/dlfcn/glreflib1.c @@ -17,6 +17,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +extern int ref1 (void); int ref1 (void) { diff --git a/dlfcn/glreflib2.c b/dlfcn/glreflib2.c index 6f8f970..b4e61e0 100644 --- a/dlfcn/glreflib2.c +++ b/dlfcn/glreflib2.c @@ -19,6 +19,7 @@ extern int ref1 (void); +extern int ref2 (void); int ref2 (void) { |