libsepol/libsepol-2.6-flex-2.6.2.patch

21 lines
602 B
Diff

--- selinux-libselinux-2.6/libsepol/cil/src/cil_lexer.l.orig 2016-11-16 17:52:41.490786500 +0100
+++ selinux-libselinux-2.6/libsepol/cil/src/cil_lexer.l 2016-11-16 17:51:43.890953733 +0100
@@ -69,7 +69,7 @@
int cil_lexer_setup(char *buffer, uint32_t size)
{
size = (yy_size_t)size;
- if (yy_scan_buffer(buffer, size) == NULL) {
+ if (cil_yy_scan_buffer(buffer, size) == NULL) {
cil_log(CIL_INFO, "Lexer failed to setup buffer\n");
return SEPOL_ERR;
}
@@ -81,7 +81,7 @@
void cil_lexer_destroy(void)
{
- yylex_destroy();
+ cil_yylex_destroy();
}
int cil_lexer_next(struct token *tok)