aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-02-18 12:20:32 -0800
committerYabin Cui <yabinc@google.com>2015-02-18 12:20:32 -0800
commit913fcb274f353348a353aaabbe872b3b5924a6e7 (patch)
tree26701a564824e9a41de417eafc156f51895db10c /libc/include
parent0e61c2c0ea201e157d0d3d3c04564588bcfb7c66 (diff)
downloadandroid_bionic-913fcb274f353348a353aaabbe872b3b5924a6e7.tar.gz
android_bionic-913fcb274f353348a353aaabbe872b3b5924a6e7.tar.bz2
android_bionic-913fcb274f353348a353aaabbe872b3b5924a6e7.zip
Make gets() deprecated.
gets is already deprecated in glibc. Others with __warnattr are not deprecated. Change-Id: I80a276d2b5964630218be47f1c94b146c0d31151
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index b04aa24c2..eb578f586 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -266,7 +266,7 @@ int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
#ifndef __AUDIT__
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
-char* gets(char*) __warnattr("gets is very unsafe; consider using fgets");
+char* gets(char*) __attribute__((deprecated("gets is very unsafe; consider using fgets")));
#endif
int sprintf(char* __restrict, const char* __restrict, ...)
__printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf");