Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 2bfdd02d288de92ff118bf41b54c135a6a318c19 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 29 Aug 2022 23:42:11 -0700 |
| 4 | Subject: [PATCH] lex/yacc: Add missing function prototypes |
| 5 | |
| 6 | Fixes build with clang15 |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | l2tp_config_parse.y | 3 +++ |
| 12 | l2tp_config_token.l | 3 +++ |
| 13 | 2 files changed, 6 insertions(+) |
| 14 | |
| 15 | diff --git a/l2tp_config_parse.y b/l2tp_config_parse.y |
| 16 | index 4baf1e0..15392d0 100644 |
| 17 | --- a/l2tp_config_parse.y |
| 18 | +++ b/l2tp_config_parse.y |
| 19 | @@ -29,6 +29,9 @@ static struct l2tp_api_session_msg_data session; |
| 20 | |
| 21 | extern void l2tp_log(int level, char *fmt, ...); |
| 22 | extern void yyfatal(const char *s); |
| 23 | +extern const char *l2tp_strerror(int error); |
| 24 | +extern int yylex (void); |
| 25 | +extern void yyerror(const char *s); |
| 26 | |
| 27 | %} |
| 28 | |
| 29 | diff --git a/l2tp_config_token.l b/l2tp_config_token.l |
| 30 | index 9016af6..43b8f0a 100644 |
| 31 | --- a/l2tp_config_token.l |
| 32 | +++ b/l2tp_config_token.l |
| 33 | @@ -15,6 +15,9 @@ |
| 34 | #include "l2tp_config_types.h" |
| 35 | #include "l2tp_config_parse.h" |
| 36 | |
| 37 | +extern void l2tp_log(int level, char *fmt, ...); |
| 38 | +extern const char *l2tp_strerror(int error); |
| 39 | + |
| 40 | void yyfatal(const char *s); |
| 41 | void yyerror(const char *s); |
| 42 | |
| 43 | -- |
| 44 | 2.37.2 |
| 45 | |