.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * lib/ts_kmp.c Knuth-Morris-Pratt text search implementation |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version |
---|
7 | | - * 2 of the License, or (at your option) any later version. |
---|
8 | 4 | * |
---|
9 | 5 | * Authors: Thomas Graf <tgraf@suug.ch> |
---|
10 | 6 | * |
---|
.. | .. |
---|
40 | 36 | { |
---|
41 | 37 | u8 * pattern; |
---|
42 | 38 | unsigned int pattern_len; |
---|
43 | | - unsigned int prefix_tbl[0]; |
---|
| 39 | + unsigned int prefix_tbl[]; |
---|
44 | 40 | }; |
---|
45 | 41 | |
---|
46 | 42 | static unsigned int kmp_find(struct ts_config *conf, struct ts_state *state) |
---|