This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch: two little warnings


Werner Almesberger wrote:
> 
> This patch fixes one missing prototype I must have overlooked, and it
> properly hides sccsid in libc/misc/unctrl.c and libc/sys/sysvi386/crt0.c
> 
> - Werner
> 

Patch checked in.

-- Jeff Johnston (Red Hat Inc.)

> ---------------------------------- ChangeLog ----------------------------------
> 
> 2000-08-28  Werner Almesberger  <Werner.Almesberger@epfl.ch>
>         * libc/posix/execve.c: included unistd.h for "_execve" prototype
>         * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed
>         "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like
>         everywhere else
> 
> ------------------------------------ patch ------------------------------------
> 
> --- orig/newlib/libc/posix/execve.c     Thu Feb 17 20:39:47 2000
> +++ src/newlib/libc/posix/execve.c      Mon Aug 28 21:29:25 2000
> @@ -3,6 +3,10 @@
>  /* This and the other exec*.c files in this directory require
>     the target to provide the _execve syscall.  */
> 
> +
> +#include <unistd.h>
> +
> +
>  int
>  execve (const char *path, char * const argv[], char * const envp[])
>  {
> --- orig/newlib/libc/misc/unctrl.c      Thu Feb 17 20:39:47 2000
> +++ src/newlib/libc/misc/unctrl.c       Mon Aug 28 21:34:27 2000
> @@ -70,9 +70,9 @@
> 
>  #include <_ansi.h>
> 
> -#ifndef lint
> +#if defined(LIBC_SCCS) && !defined(lint)
>  static char sccsid[] = "@(#)unctrl.c   8.1 (Berkeley) 6/4/93";
> -#endif /* not lint */
> +#endif /* LIBC_SCCS and not lint */
> 
>  _CONST char * _CONST __unctrl[256] = {
>         "^@",  "^A",  "^B",  "^C",  "^D",  "^E",  "^F",  "^G",
> --- orig/newlib/libc/sys/sysvi386/crt0.c        Thu Feb 17 20:39:50 2000
> +++ src/newlib/libc/sys/sysvi386/crt0.c Mon Aug 28 21:42:52 2000
> @@ -31,9 +31,9 @@
>   * SUCH DAMAGE.
>   */
> 
> -#ifndef lint
> +#if defined(LIBC_SCCS) && !defined(lint)
>  static char sccsid[] = "@(#)crt0.c     5.7 (Berkeley) 7/3/91";
> -#endif /* not lint */
> +#endif /* LIBC_SCCS and not lint */
> 
>  /*
>   *     C start up routine.
> 
> --
>   _________________________________________________________________________
>  / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
> /_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]