]> sourceware.org Git - glibc.git/commitdiff
Better gets prototype and fallout from removal
authorUlrich Drepper <drepper@gmail.com>
Tue, 27 Dec 2011 14:53:32 +0000 (09:53 -0500)
committerUlrich Drepper <drepper@gmail.com>
Sun, 1 Jan 2012 12:17:22 +0000 (07:17 -0500)
libio/stdio.h
stdio-common/tst-gets.c

index 3656bb5590dcde745734b6aec8b5a6908e4ea417..b39202879c5b6e36a1eeb0f10bf4733065787b21 100644 (file)
@@ -638,7 +638,7 @@ extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
-extern char *gets (char *__s) __wur;
+extern char *gets (char *__s) __wur __attribute_deprecated__;
 #endif
 __END_NAMESPACE_STD
 
index 87786f5b71ae1aee6dd77ad9407193eb5e8e2eaa..463f345e0eec31fac373974581534cd14d9dff91 100644 (file)
@@ -1,5 +1,5 @@
 /* Tests for gets.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
 
 #include <stdio.h>
 #include <string.h>
 
+/* The <stdio.h> header does not include the declaration for gets
+   anymore when compiling with _GNU_SOURCE.  Provide a copy here.  */
+extern char *gets (char *__s);
+
+
 int
 main (void)
 {
This page took 0.047708 seconds and 5 git commands to generate.