* 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.
This commit is contained in:
Ulrich Drepper 2000-11-29 00:04:54 +00:00
parent 5eefad82e9
commit 20bb288327
10 changed files with 28 additions and 5 deletions

View File

@ -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.

View File

@ -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)

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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;

View File

@ -2,6 +2,7 @@
#include <stdio.h>
extern void constr (void) __attribute__ ((__constructor__));
void
__attribute__ ((__constructor__))
constr (void)

View File

@ -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)
{

View File

@ -19,6 +19,7 @@
extern int ref1 (void);
extern int ref2 (void);
int
ref2 (void)
{