blob: 8c21a742e00e2426053a47c7e90ff5af18fd6ca0 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 2bfdd02d288de92ff118bf41b54c135a6a318c19 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 29 Aug 2022 23:42:11 -0700
4Subject: [PATCH] lex/yacc: Add missing function prototypes
5
6Fixes build with clang15
7
8Upstream-Status: Pending
9Signed-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
15diff --git a/l2tp_config_parse.y b/l2tp_config_parse.y
16index 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
29diff --git a/l2tp_config_token.l b/l2tp_config_token.l
30index 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--
442.37.2
45