aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2024-05-13 16:13:51 +0000
committerKyle Evans <kevans@FreeBSD.org>2024-05-13 16:21:38 +0000
commit8b0682644e2da9c595d9249c9a0c8eb499421b5e (patch)
tree8f0a95a9c377ae6a9fe82215950d13033742329a /include
parentb667c40f9ff6db3ad5978368b3771e675759b474 (diff)
downloadsrc-8b0682644e2da9c595d9249c9a0c8eb499421b5e.tar.gz
src-8b0682644e2da9c595d9249c9a0c8eb499421b5e.zip
Fix the GCC build after _FORTIFY_SOURCE import
We haven't exposed gets(3) in a long time, rip out __gets_chk before it's too late and something builds a gets(3) user with it enabled.
Diffstat (limited to 'include')
-rw-r--r--include/ssp/stdio.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/ssp/stdio.h b/include/ssp/stdio.h
index 72e3236eac80..ed7303497a45 100644
--- a/include/ssp/stdio.h
+++ b/include/ssp/stdio.h
@@ -48,7 +48,6 @@ int __snprintf_chk(char *__restrict, size_t, int, size_t,
int __vsnprintf_chk(char *__restrict, size_t, int, size_t,
const char *__restrict, __va_list)
__printflike(5, 0);
-char *__gets_chk(char *, size_t);
char *__fgets_chk(char *, int, size_t, FILE *);
__END_DECLS
@@ -78,11 +77,6 @@ __END_DECLS
fmt, ap); \
})
-#define gets(str) ({ \
- char *_ssp_str = (str); \
- __gets_chk(_ssp_str, __ssp_bos(_ssp_str)); \
-})
-
#define fgets(str, len, fp) ({ \
char *_ssp_str = (str); \
__fgets_chk(_ssp_str, len, __ssp_bos(_ssp_str), fp); \